biostar-central
biostar-central copied to clipboard
Adding Google Scholar URL to Google Scholar ID input results in odd linking
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.
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
I will add a validator to preform that action.