You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@fdhadzh I tried your solution but it only works for routes like this: localhost:4200/xxx.
The moment the route is one "layer" deeper it doenst work: localhost:4200/xxx/yyy or just localhost:4200/xxx/ (second slash).
This is because without a base tag the generated script tags no longer refer relative to /:
Activity
simon-sharp commentedon May 12, 2016
Solution:
Replace
<base href="/">with
<script>document.write('<base href="' + document.location + '" />');</script>in
angular-cli\addon\ng2\blueprints\ng2\files\__path__\index.htmlfilipesilva commentedon Jun 18, 2016
Closing in favor of #1064, which is more explicit.
niklas-dahl commentedon Jan 16, 2017
@fdhadzh I tried your solution but it only works for routes like this:
localhost:4200/xxx.The moment the route is one "layer" deeper it doenst work:
localhost:4200/xxx/yyyor justlocalhost:4200/xxx/(second slash).This is because without a
basetag the generatedscripttags no longer refer relative to/:I want to use svg markers that require relative
FuncIRIs.@filipesilva Is this currently solvable with the current webpack setup?
Thanks.
Problem described here:
https://stacksandfoundations.com/2016/06/22/svgs-funciri-angular2-and-the-base-tag/
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.