how to build angular-dspace 7.2 subfolder for url localhost:4000/dspace

290 views
Skip to first unread message

hosk...@gmail.com

unread,
Mar 16, 2022, 3:41:50 AM3/16/22
to DSpace Technical Support
Hi;

we have deploy dspace 7 backend and works well in localhost

we are trying to install dspace frontend on the same banckend server. and make it accessible from localhost:4000/dspace

( compile dspace-angular with the following parameters: ssl:false host: localhost port: 4000 nameSpace: /dspace baseUrl: '/dspace/' )

the compilation generates a dist/server directory.

the dspace ui does not work properly and generates 500 errors.

we noticed that the baseUrl and nameSpace values are not taken into consideration.

the generated urls are localhost:4000/dspace/dspace/statistic... instead of loaclhost:4000/dspace/statistic .....

at each url the '/dspace/' part is repeated

how to configure dspacce-angular baseurl and href to have dspace ui accessible with the url localhost:4000/dspace

thanks for help


Tim Donohue

unread,
Mar 17, 2022, 10:42:10 AM3/17/22
to DSpace Technical Support
Unfortunately, it's a known issue that the "nameSpace" configuration in DSpace 7 UI is not working properly.  See this prior question on dspace-tech: https://groups.google.com/g/dspace-tech/c/YD5x0IGSuGc/m/D6GQcQUkBgAJ


An initial attempt to fix it is at https://github.com/DSpace/dspace-angular/pull/1488  (this fix doesn't fully work yet)

Unfortunately, though, this has proven hard than anticipated and we don't have a fix available yet.  The DSpace UI works perfectly fine as long as "nameSpace" is kept at the default value of "/".  Currently, we don't have a way to easily support subpaths for the UI.

Tim

hosk...@gmail.com

unread,
Mar 24, 2022, 3:45:41 AM3/24/22
to DSpace Technical Support
thanks for the details. we would like to deploy dspace in a subpath because we have the old dspace6 accessible from suburl  https://domain.ex/dspace
thanks.

Reply all
Reply to author
Forward
0 new messages