-
Notifications
You must be signed in to change notification settings - Fork 876
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
Wrong asset path being requested #919
Comments
We're also running into this issue when trying to upgrade from Rails 5.2.6 to Rails 5.2.6.3. With Rails 5.2.6, it correctly returns the URL without the slash at the start. |
According to our tests, the issue seems to be related with upgrading sprockets from 4.0.2 to 4.0.3 (which we were including as part of the mentioned Rails upgrade). |
Thanks @javierm - I downgraded sprockets-rails from 3.4.2 to 3.2.2 and now it's using the correct URL. |
We're having the same issue and regressing sprockets-rails fixed it for us as well. h/t |
It's working for me with Sprockets 4.0.3 after upgrading to Rails 5.2.8.1. Instead of URLs like |
Ended up addressing this in an old app by adding a route with a redirect. This works around the problem if you can't update Sprockets.
|
Just had this same issue and was able to track it to a move from sprockets-rails 3.2.2 to 3.4.2. More importantly, I noticed that 3.4.2 introduced a new config value to use the legacy asset url approach (rails/sprockets-rails@67c74ec). Setting that new config value fixed it for me: # application.rb
config.assets.resolve_assets_in_css_urls = false |
This fixed it for me on an app running Rails 6.1.7.6 |
Also only this solution help to fix error on Rails 5.2.8.1 with only one difference i have error with 'icons.png'
|
Version 4.3.0, rails 5.2.7, sass 3.6.0, sass-rails 5.0.7, sassc 2.0.0, sassc-rails 2.1.0
For some reason ckeditor is requesting the wrong URL for
icons_hidpi.png
with the result that none of the button icons are visible. It happens in both development and production.Expected request:
/assets/ckeditor/skins/moono-lisa/icons_hidpi.png
Actual request:
/icons_hidpi.png
The request originates from the moono-lisa skin's
editor.css
where I would expect the compiled output to contain:However the actual compiled output includes a forward slash at the start, making it an absolute URL instead of relative:
The file itself is being served at the expected location in both development and production, so it isn't an issue with the png not being precompiled etc.
window.CKEDITOR_BASEPATH
is correct so that can't be the issue either. And I've tried clearing the assets cache but that made no difference.All the other scripts are being loaded correctly and the editor is fully functional otherwise. I'm completely baffled - any ideas why this might be happening? Thank you.
The text was updated successfully, but these errors were encountered: