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

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

Open
RamRS opened this issue Jun 7, 2021 · 2 comments
Open

Comments

@RamRS
Copy link

RamRS commented Jun 7, 2021

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.

@ialbert
Copy link
Owner

ialbert commented Jun 7, 2021

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

@Natay
Copy link
Collaborator

Natay commented Jun 7, 2021

I will add a validator to preform that action.

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

3 participants