routerLink appends my link

后端 未结 1 1398
礼貌的吻别
礼貌的吻别 2020-12-19 09:19

I have a menu navigation component that appears on all pages:

I have some links like this: - Following - Followers

When I\'m on http://localhost/#/ t

相关标签:
1条回答
  • 2020-12-19 09:57

    You are using relative urls, that's why routerLink keeps appending them. You should check the Relative Navigation documentation.

    No slash in the biggining or ./ means a relative url to the current one

    A starting slash means an absolute url

    0 讨论(0)
提交回复
热议问题