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

Adding Google Scholar URL to Google Scholar ID input results in odd linking

Open RamRS opened this issue 3 years ago • 2 comments

Biostars has a spot in our profile where we can add our Google Scholar ID. I stumbled across a profile which had a Scholar URL added, and doing so appended the entire URL to the user= parameter, resulting in a really weird page (my scholar page in a different language). See this user's profile: https://www.biostars.org/u/a67855ca/

We should either verify that it's an ID and not a URL being entered, or parse out the ID if a URL is entered.

RamRS avatar Jun 07 '21 17:06 RamRS

I fixed the data for the user,

we should validate this field so that only the 12 or so digits of the id are allowed when entered, to avoid similar errors in the future

ialbert avatar Jun 07 '21 17:06 ialbert

I will add a validator to preform that action.

Natay avatar Jun 07 '21 17:06 Natay