Skip to content

🐛 BUG: Browser history back is not working Following Nablink #1881

@ronodhirSoumik

Description

@ronodhirSoumik

What went wrong? 🤔

If user tries to access certain navlinks like Following, History or Read It Loud in the main feed page without being logged in, he will be redirected to the registration page. Unlike Following, in case of other links, user can back to the main feed by using history link.
But for Following, user can not get back to main feed from registration page by browser history back. It redirects again to registration page.

So user seems stuck to the registration page. Also I think this creates a discrepancy with other links.

Expected Behavior

No response

Steps to Reproduce Issue

1. Go to main feed page (https://app.daily.dev/posts). First make sure you are not logged in.
2. Click on Following link in the left nav section. (second from top)
3. As you are not registered, you will be redirected to the registration page (https://app.daily.dev/onboarding)
4. Now use browser back. It will redirect to the same page instead of going back to the main feed page.

Solution Proposed

A param after_auth is missing while redirecting to the registration page. Adding that should work.

Screenshots

No response

Environment

Windows and Linux

Browsers

Chrome

OS

No response

Version of daily.dev

No response

Additional Context

Code of Conduct

  • I follow the conditions of this project.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions