Skip to content
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

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

r-ash
Copy link
Collaborator

@r-ash r-ash commented Nov 25, 2024

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

  • I have incremented version number, or version needs no increment
  • The build passed successfully, or failed because of ADR tests

</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>
Copy link
Collaborator Author

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

Copy link
Contributor

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

Copy link
Collaborator Author

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>
Copy link
Collaborator Author

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

@r-ash r-ash requested a review from krisdoyon November 25, 2024 20:25
Copy link
Contributor

@krisdoyon krisdoyon left a 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!

@r-ash r-ash merged commit d095931 into main Nov 26, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants