Expo router and browser back button

Expo Version: 49.0.5
Platform: Web

Hello! My Question is about expo-router. We are using the file based navigation and we have a navigation menu where I change the route by pushing the path like this:

    pathname: "/Community",

Now I guess I create a stack of paths that I visited. But when I now click on the browser back button, I leave the app completely or something else happens but I don’t really navigate through the stack.

I saw this answer here: react native - Prevent default back navigation when using expo-router - Stack Overflow
But the beforeRemove event would only help me to intercept, when the user leaves the app, right? So how can I navigate with browser arrows?

Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.