-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(NcListItem): Bring back correct href for router-link links #3922
Conversation
Still needs a tweak as links now open in a new tab by default. |
254c968
to
1dd7b68
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems, we don't use snake_case
for variable names.
href_router
-> routerLinkHref
?
1dd7b68
to
80adbc7
Compare
Fixed. However, the link now behaves as a normal link and reloads the page. Still needs fixing. |
Fine with me. |
|
Yes, but only if it's a router-link |
80adbc7
to
aaf6d3e
Compare
Signed-off-by: Raimund Schlüßler <[email protected]>
aaf6d3e
to
ddbeca7
Compare
Seems to work as it should now. |
I checked it with Talk and Tasks now and both |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code make sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes talk again and the explanations make sense
@raimund-schluessler I just noticed that there might a bug in this PR:
PS: I'm currently trying to debug a major regression from #3775 (comment) |
const href // href from prop
function renderSlot({ href: routerLinkHref, navigate, isActive } = {}) {
return h('a', { attrs: { href: routerLinkHref || href } })
} When When |
That makes sense. Thanks for the explanation. I found the problem: to.exact is not honored. Instead, I have to provide the :exact prop manually. |
It turns out that exact is a prop of router-link and a fix in mail is sufficient. I have no idea how it worked at all before 😅 |
This brings back the correct
href
for the link inNcListItem
andNcAppNavigationItem
that got erroneously removed with #3775. Closes #3921.Tested with Talk master and the links show up again.