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 author badge link #2000

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

michael1-0
Copy link

@michael1-0 michael1-0 commented Feb 25, 2025

Current

When a user clicks the author's name element on an article's author badge with a non-default language selected, it will redirect to the default language author page, not the corresponding user selected language.

Screenshot 2025-02-25 213230

Solution

I added some conditional where if it detects a prefix that is empty, meaning default language is selected by user, it will default to none added to the URL, else user selected non-default language, it will add the language name to the URL. This will pass the correct context link to author-extra.html partial.

Fixes #1999

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.

1 participant