New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Router config of static files directory does not work properly #141
Comments
@pavsyk Thanks for reporting an issue. I will have a analyze and get back to you. |
@pavsyk Thanks, I have analyzed it. Sorry for late response, caught up with some work. Yes, you're right. Can you use default directory named By design router and static file delivery supports many directories and files from relative to absolute paths. I need to think about flexible configuration for your described scenario. For e.g.: One of my thought
|
@jeevatkm Thanks. Yes, it is what I did (i.e. mapped the |
…om routes.conf - added "base_dir" attribute support for static file mapping and fallback to "public_assets.dir"
…routes.conf (#147) - added "base_dir" attribute support for static file mapping and fallback to "public_assets.dir"
@pavsyk Thank you for your patience. I have implemented this enhancement, currently available on edge version. You can give it try. To be released as part PS: BTW aah docker images are available https://hub.docker.com/r/aahframework/aah |
If you want to place static files into other directory then "static" (see the excerpt from the routes.conf):
Then the URL
http://localhost:8080/favicon.png
returns 404, because the framework is still trying to deliver thestatic/img/favicon.png
file instead ofassets/img/favicon.png
. It seems that the "static" prefix is hardcoded here, but it should take thestatic/public_assets/dir
config value instead.The text was updated successfully, but these errors were encountered: