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

User URL to uname auto-conversion does not watch out for parameters specific to new tabbed layout #913

Open
RamRS opened this issue Aug 26, 2022 · 0 comments

Comments

@RamRS
Copy link

RamRS commented Aug 26, 2022

biostars automagically renders /u/XYZ/ URLs as [username](/u/XYZ/) hyperlinks. This worked fine in all cases in the old site but in the new one, we can have parameters following the URL indicating the active tab (/u/XYZ/?active=profile|posts|awards). The parse auto-replaced the /u/XYZ/ part so we get [username](/u/XYZ/)?active=.... Expanding the regex to include the parameters if found will ensure the entire URL is picked up while use cases such as /u/XYZ/'s post will still be rendered as [username](/u/XYZ)'s post

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

No branches or pull requests

1 participant