ialbert / biostar-central

Biostar Q&A

Home Page:http://www.biostars.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

RamRS opened this issue · comments

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