[bug]: post-icon incorrect URL #5093
Labels
🐞 bug
Something isn't working
📦 components
Related to the @swisspost/design-system-components package
request
This is a request from a contributor outside of the core team.
v8
v9
Milestone
Describe the bug
The post-icon URL is not correct when used with a
<base href="/" />
.The URL is then "http://my-domain.ch//2000.svg".
Expected behavior
The URL should be "http://my-domain.ch/2000.svg".
In general, icon URLs should be constructed as:
current domain +
base[href]
+meta[name="design-system-settings"][data-post-icon-base])
(overridden by a potentialbase
property set on the component)If the
base[href]
is not relative, it is instead of current domain +base[href]
.If the
meta[name="design-system-settings"][data-post-icon-base])
(or thebase
prop) is not relative, it is used as is.The text was updated successfully, but these errors were encountered: