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
Added logic to set href for service link #7524
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.
LGTM - all links are leading to the excited external site and are not sending me to the top of the page
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.
The U.S. Digital Registry link isn't working--is that because it's an internal link and gets messed up in the federalist preview? Otherwise looks good--the bug that was reported has been fixed.
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.
@nick-mon1 if one case is more common than others, would it make more sense to set that as the default?
Pseudocode example
// Save the fallback.
{{ $fallback_url := .Params.source_url }}
// Set the override with fallback.
{{ .Params.url | default $fallback_url }}
Thanks for the comments team!
|
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.
Looks good!
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.
Looks good, tested all links in services pages.
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.
w00t!
Summary
Visiting https://digital.gov/services/ and clicking each link will take back to the top of the page.
It should link to the external or internal service.
Preview
Link to Preview
Solution
Added logic to properly set the link for each
card-service
.How To Test
All links point to an external page except U.S. Digital Registry and the DAP guide.
Dev Checklist