UI Sends to API

32 views
Skip to first unread message

Christoforos Korifidis

unread,
Dec 5, 2023, 5:18:48 AM12/5/23
to DSpace Community
Hello,

I am using DSpace 7.6.
I can make call through the HAL browser at the end point
"/server/api".

When I am trying to use anglular UI I get error and I see that requests are deireted to
"/api" not to "/server/api".

I am struggling to find where do I change this parameter so the UI makes calls to /server/api but I don't understand.

Any help is appreciated.

DSpace Community

unread,
Dec 5, 2023, 3:37:36 PM12/5/23
to DSpace Community
Hi,

I suspect you have an incorrect URL in one of these configurations:
* Either in the "dspace.server.url" in your backend's local.cfg.  Maybe this URL is missing the "/server"?
* Or, it could be in the "rest" settings in your frontend's config.prod.yml.  In this situation, make sure the "nameSpace" is set to "/server" (with no quotes).

When URLs change randomly it usually means that one of these configurations is incorrect, and the UI (or backend) is trying to redirect you to the URL that is in your configuration.

Tim
Reply all
Reply to author
Forward
0 new messages