Improve frontend login redirections

Created on 5 November 2024, about 1 year ago

Problem

When the frontend login is used, the system redirects to the user account page on the backend. This is weird from a UX perspective, we should stick in the frontend.

Steps to reproduce

Test the demo.

Proposed resolution

- One possible solution would be to add the user account page as frontend route. But that would also trigger the redirection to the frontend when viewed from the backend, what is not what we want.
- It would be better to make the user account route viewable from backend and frontend. It is, but atm the redirect is absolute and thus points to the backend.
Options:
A) We could use some alter logic the lupus_decoupled_user_forms module to prevent that and make the redirect relative.
B) We could change URL generation to make absolute URLs point to the frontend WHEN we are currently rendering a ce-api request. This is probably not wanted for every URL, there needs to be a way to generate backend URLs still. Thus, instead of doing it always, we could introduce a new option / category for URLs for that. Sort of "neutral" URLs, that stay in backend/frontend as needed.

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇦🇹Austria fago Vienna

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024