You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Login menu button is broken once you visit the login page. User will be navigated to the set ReturnUrl in navigation which is the homepage for this example. Once navigated to the homepage and a user clicks this control again it results in navigation to the same page you just returned to in a loop resulting in the Login Button Control. https://github.com/oqtane/oqtane.framework/blob/dev/Oqtane.Client/Themes/Controls/Theme/Login.razor
Steps to reproduce
Fire up VS with the latest dev 5.0.3 commit
Install and switch to static rendering runtime.
Click login, sends you to login page, click login while on that page you will notice the url as below, go to another page and notice that login url stays as shown resulting in not being able to access the login page using that menu button control.
Expected Behavior:
User will stay on login page when button is clicked. There is no need to set a return Url for the login button control while a user is visiting a page with a login UI page form component. In fact I can't think of a reason to ever include a return url on the Login button control. It should always navigate to the login page every time it is clicked.
Additional Context
The login ReturnUrl should be removed if it has one already prior to applying it for all render modes. I can make strings of them long inside the browser.
If you click on a button that navigates to the same page, the old return url value could stay the same or be cleared, along with keeping its ability to navigate to the page it is on instead of removing it and pretty much going to the homepage from login.
I have not tested results from child pages. However the profile button while logged in, and the login button while logged out can display these behaviors currently.
The text was updated successfully, but these errors were encountered:
thabaum
changed the title
Bug: ReturnUrl feature is broken on login menu button 5.0.3 Dev
Bug: ReturnUrl feature is broken on login menu button 5.0.3 Dev (static SSR)
Feb 11, 2024
thabaum
changed the title
Bug: ReturnUrl feature is broken on login menu button 5.0.3 Dev (static SSR)
Bug: ReturnUrl feature is broken on login menu button (5.0.3 static SSR)
Feb 12, 2024
thabaum
changed the title
Bug: ReturnUrl feature is broken on login menu button (5.0.3 static SSR)
Bug: Navigation Menu - Login Button Control: Clicking on this button while on login page navigates user to homepage(5.0.3 static SSR)
Feb 12, 2024
thabaum
changed the title
Bug: Navigation Menu - Login Button Control: Clicking on this button while on login page navigates user to homepage(5.0.3 static SSR)
Bug: Navigation Menu - Login Button Control: Link Includes A ReturnUrl Resulting In Navigating To Homepage Loop(5.0.3 static SSR)
Feb 12, 2024
thabaum
changed the title
Bug: Navigation Menu - Login Button Control: Link Includes A ReturnUrl Resulting In Navigating To Homepage Loop(5.0.3 static SSR)
Bug: Navigation Menu - Login Button Control: Link Includes A ReturnUrl Resulting In Navigating To Homepage Loop (5.0.3 static SSR)
Feb 12, 2024
thabaum
changed the title
Bug: Navigation Menu - Login Button Control: Link Includes A ReturnUrl Resulting In Navigating To Homepage Loop (5.0.3 static SSR)
Bug: Navigation Menu - Login Button Control: Link Includes A ReturnUrl Resulting In Navigating To ReturnUrl Loop (5.0.3 static SSR)
Feb 12, 2024
Issue
Login menu button is broken once you visit the login page. User will be navigated to the set ReturnUrl in navigation which is the homepage for this example. Once navigated to the homepage and a user clicks this control again it results in navigation to the same page you just returned to in a loop resulting in the Login Button Control.
https://github.com/oqtane/oqtane.framework/blob/dev/Oqtane.Client/Themes/Controls/Theme/Login.razor
Steps to reproduce
Expected Behavior:
User will stay on login page when button is clicked. There is no need to set a return Url for the login button control while a user is visiting a page with a login UI page form component. In fact I can't think of a reason to ever include a return url on the Login button control. It should always navigate to the login page every time it is clicked.
Additional Context
The text was updated successfully, but these errors were encountered: