This may be simple, but I've looked over documentation and can't find anything about it. I want to have my 'github' link redirect to say, github.com. However, its just appending 'https://github.com' to my url instead of following the link. Here is a snippet:
<BreadcrumbItem to='https://github.com'>
<Icon type="social-github"></Icon>
</BreadcrumbItem>
(This is using iView for custom CSS, but 'to' works in the same way as router-link).
<a href="...">
to point directly to whatever you're linking to.vue-router
is only needed for internal links. – Squash<a>
tag is not being "abandoned";to
is a vue construct that gives the router a chance to rewrite the url to point back to the SPA. One way would be to build that logic into yourBreadcrumbItem
component, to use<a href="...">
if the attribute has a http(s) protocol or<router-link>
otherwise. – Squash