biostar-central icon indicating copy to clipboard operation
biostar-central copied to clipboard

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

Open RamRS opened this issue 2 years ago • 0 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

RamRS avatar Aug 26 '22 17:08 RamRS