-
Notifications
You must be signed in to change notification settings - Fork 635
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
CP Menu plugin icon svg path gets hardcoded #2643
Comments
Is it more than just the database you move over when doing this? i.e. anything in the |
No, just the database, I install all composer dependencies separately on dev/production. Just to be sure, I tried |
Can you share a screenshot of the HTML you're seeing when you inspect the code. Craft just loads the SVG data to display a plugin's icon so not seeing how any absolute paths are coming into play: https://github.com/craftcms/cms/blob/develop/src/services/Plugins.php#L925 Also, I'm not able to reproduce this with the testing I've done. |
I think I found the culprit - the And here it is when I uninstall ... I'll reference this issue in cp-nav's tracker - verbb/cp-nav#47 . |
Issue is resolved in cp-nav 2.0.6, thanks Josh! |
Description
When I install SEOmatic (latest beta, but has been an issue since the beginning and had the same issue with other plugins that have custom icons) on the server, it works fine, but locally, the icon is a big mess. When examining the svg path in devtools, I see the path is still hardcoded (same as on Ubuntu 16.04 server where the plugin was installed initially).
The devtools path for the broken svg in above screenshot is:
/home/forge/productionwebsite.com/vendor/nystudio107/craft-seomatic/src/icon-mask.svg
It should be:
c:\web\devwebsite.local\vendor\nystudio107\craft-seomatic\src\icon-mask.svg
as this is on windows. Forward slashes would work too from my experience.The same thing happens if I install the plugin locally first and then move to Linux - the hardcoded path is now from Windows and the nasty icon is shown on Linux.
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: