DSpace 7.6.1: Switch to myDSpace page directly after login?

105 views
Skip to first unread message

Matthias Letsch

unread,
Mar 15, 2024, 10:51:46 AM3/15/24
to DSpace Technical Support
Hello there,

By default, you remain on the homepage when you log in. Is there a (simple) way to set that after logging in you are taken directly to the myDSpace page with the overview of your own releases?

Thank you and kind regards,
Matthias

Sascha Szott

unread,
Mar 28, 2024, 5:13:19 AM3/28/24
to dspac...@googlegroups.com
Hi Matthias,

we have solved this by adapting one line in

src/app/core/auth/auth.effects.ts

You need to change the implementation of the redirectAfterLoginSuccess$
method by replacing

this.authService.navigateToRedirectUrl(action.payload);

with


this.authService.navigateToRedirectUrl('/mydspace');


Best regards
Sascha


Am 15.03.24 um 15:51 schrieb Matthias Letsch:
> --
> All messages to this mailing list should adhere to the Code of Conduct:
> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
> <https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx>
> ---
> You received this message because you are subscribed to the Google
> Groups "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to dspace-tech...@googlegroups.com
> <mailto:dspace-tech...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dspace-tech/9dab0f73-5615-49da-84ac-3ce7fbc21b98n%40googlegroups.com <https://groups.google.com/d/msgid/dspace-tech/9dab0f73-5615-49da-84ac-3ce7fbc21b98n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Matthias Letsch

unread,
Apr 2, 2024, 9:35:57 AM4/2/24
to DSpace Technical Support
Hi Sascha,

thank you, this solution works fine for all users that login with email + password (authentication-password).

In addition to this authentication method, we have also activated shibboleth, which most users will use to log in. Unfortunately, the redirect to /mydspace is not executed with the suggested change for those users. Do you happen to know whether and which other place needs to be changed for this?

Thanks again
Matthias

Reply all
Reply to author
Forward
0 new messages