Absolute paths for icons and fonts #4

Closed
opened 2020-10-19 20:52:31 +00:00 by koloml · 3 comments

Find out that all the icons and fonts loaded using absolute paths. So I'm just unable to correctly run Carbon at subdirectories (like here).

List of non-loaded resources:

  • ./static/whitney-500.woff and ./static/whitney-400.woff called from ./static/main.css
  • ./static/directs.svg and ./static/channels.svg called from ./static/sync/sync.js:123
Find out that all the icons and fonts loaded using absolute paths. So I'm just unable to correctly run Carbon at subdirectories (like [here](http://thecore.city/carbon)). List of non-loaded resources: + `./static/whitney-500.woff` and `./static/whitney-400.woff` called from `./static/main.css` + `./static/directs.svg` and `./static/channels.svg` called from `./static/sync/sync.js:123`
Author

Maybe it's better to use relative path or something like this.

Maybe it's better to use relative path or something like this.
Owner

Thanks for the info. The build script is mostly designed to use relative paths, but I guess a few absolute paths got in there somehow. I'll address this at some point.

Thanks for the info. The build script is mostly designed to use relative paths, but I guess a few absolute paths got in there somehow. I'll address this at some point.
Owner

This should now be fixed.

This should now be fixed.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cadence/Carbon#4
No description provided.