-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Files access via routes is broken after recent Grav refactoring #794
Comments
|
i just tested really quick and got another error with the fallback stuff. So definitely an issue that needs to be looked at. |
Wondering when this regression happened |
Hello, |
Replicated. I wasn't getting this issue previously because I didn't merge the latest |
the problem I get is related the fallbackUrl() method in Grav object needs to be changed from |
Here's that change: dc121e9 Please test with this and let me know if your issue persists. |
With dc121e9 all went back to normal. Files are loaded fine again. |
cool :) Closing! |
If a page has files accessed via routes, the files are not loaded.
Loading those files directly throws an error:
For test example I have two folders:
grav_test1
andgrav_test2
.The first one contains
develop
before refactoring, the second one contains the latestdevelop
. Both with default Antimatter theme.Content of the
user
folder is the same in both folders:I put
test_image.png
file into thepages\01.home
folder (next to thedefault.md
file).Then in the
default.md
file I added the following line referring test image:Then load the pages in browser:
local.dev/grav_test1/ --> image is loaded fine on the page
local.dev/grav_test2/ --> image is not loaded
When trying to access files directly:
local.dev/grav_test1/home/test_image.png --> image is loaded fine
local.dev/grav_test2/home/test_image.png --> throws an error
The same is true for any files accessed via routes.
The text was updated successfully, but these errors were encountered: