-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
UI: Update <a> tags to LinkTo's #17866
Conversation
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.
I really like these changes thanks for tackling! I left one more non-blocking comment.
get href() { | ||
return this.args.href; | ||
} |
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.
Can this arg be accessed directly in the template instead?
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.
This one we want to keep, because the DocLink and LearnLink extend this component, and their hrefs are always a getter not a passed param
<a>
tags have different behavior than<LinkTo>
within our app with regards to keeping root users logged in on page load. This change is to make sure we're using<a>
tags as minimally as possible. All the current implementations of these tags are legitimate (they correctly reload the page or link to an external site) but to consolidate their usage I created a newExternalLink
component, and glimmerizedDocLink
andLearnLink
so they can extend this new component.Something I considered that is out of scope of this ticket, is using the HDS Links instead, but I think that should be follow-on work