Skip to content

Google Scholar badge link redirects to /redirect/?url= path causing 404 #517

@thamzayev

Description

@thamzayev

Issue is encountered on DSpace-CRIS 8 (2024.02.00).
Each publication/person page displays a Google Scholar badge.
When hovering over the badge, the browser shows the correct Google Scholar link in the format:
https://scholar.google.com/scholar?q=[publication/person title]

However, clicking the badge does not open Google Scholar directly. Instead, the link is rewritten to:
[dspace-server-url]/redirect/?url=[google scholar link]

This results in a 404 Not Found error from the DSpace-CRIS server.

Official demo has this problem too:
https://dspacecris-community.test.4science.cloud/

DSpace-CRIS 7 works fine.

Steps to reproduce:

  1. Open any publication page with a Google Scholar badge.
  2. Hover over the badge and observe the correct Google Scholar URL in the browser status bar.
  3. Click the badge.
  4. Notice that the URL is rewritten to /redirect/?url=... on the local DSpace server.
  5. A 404 error page is returned.

Expected behavior:
Clicking the Google Scholar badge should open Google Scholar directly with the appropriate search query for the publication title.

Actual behavior:
The link is redirected through the local /redirect/?url= path on the DSpace server, which does not exist and results in a 404 error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions