-
-
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
Relative URLs linked from external CSS assets not getting rewritten #2216
Comments
I think this can be closed.... |
I was excited to see this fix in the changelog for v1.6.2 today, but I'm still seeing some similar issues when adding new FontAwesome versions(I haven't tried other resources). With either adding it as an additional asset in my theme(g5 helium) or using the below twig, the following two situations happen. With include externals ON: Eg. The missing slash causes the request to stay on grav's domain, ie. the request goes as: With include externals OFF: For the meantime, I'm going to have to stick with manually adding the |
I've done some further digging and it looks like Not uncovered anything more about the disappearing link tags. |
Fixed it with a quick check. |
Cool - the url's are now just included as something like The problem of resources disappearing when "Include externals in CSS pipeline" is off is still present however, I'll open a new issue. |
I'm releasing this version now as it has some other important issues fixed. I will revisit this next week . While that option should work, and I will need to fix it, the workaround is to use |
actually keep this one open as I want to fix that |
This should be sorted too |
Looks to be working perfectly from my testing - thanks! |
I am making use of an external CSS library through the asset manager:
I've enabled CSS pipeline with the options to bring in external CSS assets and to rewrite any relative URLs in them:
However, the URLs are not getting rewritten - they are being left as relative paths. This naturally then leads to a failed request since the linked file is not available on my server.
The relevant portion of the CSS file:
The text was updated successfully, but these errors were encountered: