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

LB-1177: Mobile navbar link broken for Year in Music #2443

Conversation

shuklabhisekh
Copy link
Contributor

@shuklabhisekh shuklabhisekh commented Apr 3, 2023

Problem

When no user is logged in, clicking the YIM 2021 navbar link on mobile directs the user to the broken link:
https://listenbrainz.org/user//year-in-music
Instead of:
https://listenbrainz.org/user//year-in-music

Related JIRA Ticket: LB-1177

Solution

The jinja template for the navbar needs to ascertain whether a user is logged in, and hide the year in the music link if not.

  • When a user is not logged in. Hiding the Year in Music
    Screenshot (206)

  • When a user is logged in. Showing the Year in Music
    Screenshot (207)

Copy link
Contributor

@MonkeyDo MonkeyDo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that looks good, thank you!

@MonkeyDo MonkeyDo merged commit 78e37b7 into metabrainz:master Apr 14, 2023
2 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
2 participants