-
Notifications
You must be signed in to change notification settings - Fork 445
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
URI link on simple item page always opens in a new page/tab #3241
Comments
Good afternoon @tdonohue! My name is Andrea and I'm part of Neki-it. We want to do this activity. |
Thanks @Andrea-Guevara . I'll assign this to you for your team. Please let us know on this ticket if you need advice on any solution you may be working on. |
Good afternoon @tdonohue! I was able to reproduce this error a few days ago, but now I can't reproduce the error on https://demo.dspace.org which is on version 8. I was wondering if this is still a problem? |
Yes it still is. Try clicking on the URI in this page: |
Good morning @saiful-semantic, I hope you're well! We have provided a PR as a possible solution to this problem. If necessary, we welcome suggestions for improving the code. We look forward to your feedback! |
[Port dspace-7_x] fix #3241: Configuring the URI link target
[Port dspace-8_x] fix #3241: Configuring the URI link target
Describe the bug
In DSpace 8.0, the URI link on item page always opens in a new page.
To Reproduce
Steps to reproduce the behavior:
It will open a new page despite the item being within the same domain.
Expected behavior
Ideally links belonging to the same FQDN should open within the same page.
Related work
On digging further I think the reason is hasInternalLink function.
In lines 134-136 of
src/app/item-page/field-components/metadata-values/metadata-values.component.ts
:When we use a reverse proxy for the UI (as in most production deployments), this function always returns a
false
value. e.g.,environment.ui.baseUrl = http://localhost:4000
linkValue = https://production-domain/handle/x/xx [assuming the fake handle]
This makes each URI in simple item page opening in a new window/tab.
The text was updated successfully, but these errors were encountered: