-
Notifications
You must be signed in to change notification settings - Fork 2
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 issue with link to privacy and accessibility from login page not working #1039
Conversation
</div> | ||
|
||
<div id="partner-logos" class="logos d-flex justify-content-center mt-5"> | ||
<a href="https://www.fjelltopp.org"><img src="public/images/fjelltopp_logo.png" class="small-logo"></a> |
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 was broken on production too, you can check by going to a non-existent root naomi.unaids.org/not/a/path
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.
Might consider adding target="_blank" attribute on each of the anchor tags here to force the URL to open in a new tab
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.
Good catch, thanks. Have updated that in this template and the login template.
@@ -104,7 +104,7 @@ | |||
</a> | |||
</div> | |||
</div> | |||
<div id="spacer" class="flex-grow-1"></div> |
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.
Added some padding to this which I think improves the styling a bit
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.
Accessibility and privacy pages are loading correctly for me, good catch!
Description
On the current app if you try to go to privacy or accessibility from the login page you just get redirected back to login page again.
This PR fixes that by switching the history mode, I think this was what was causing the issue. See https://router.vuejs.org/guide/essentials/history-mode.html#HTML5-Mode for details, I think we are safe to switch because of the way we are serving the frontend from freemarker templates. At least comparing this to production, I can't notice any reason not to switch the history mode. Behaviour is the same, and we no longer have the ugly
#
that gets put in the URL.Type of version change
Patches
Checklist