# Browser history behavior when setting URL parameters with Navigate

**URL:** <https://community.appfarm.io/t/browser-history-behavior-when-setting-url-parameters-with-navigate/2238>\
**Category:** Ask the community\
**Created:** [January 27, 2026, 1:28pm UTC](https://community.appfarm.io/t/browser-history-behavior-when-setting-url-parameters-with-navigate/2238 "2026-01-27T13:28:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SigurdEileras](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/sigurdeileras/32/2621_2.png) [@SigurdEileras](https://community.appfarm.io/u/SigurdEileras)\
**Post date:** [January 27, 2026, 1:28pm UTC](https://community.appfarm.io/t/browser-history-behavior-when-setting-url-parameters-with-navigate/2238/1 "2026-01-27T13:28:06Z")

</div>

Hi 👋

I have a question about how browser history is updated when using the navigation action node to set URL parameters in Appfarm.

**Setup:**  
I have a button that opens a full-screen dialog and uses _Navigate_ to set URL parameters. When I use Navigate without setting _View_, the new URL replaces the old one in the browser history (see screenshot).

**Issue:**  
When using the browser back button after opening the dialog and setting the URL parameter, it navigates back what seems like two steps (see example in Loom). For some users this feels a bit confusing.

Is there a workaround for this?  
Or is it possible to have the new URL added to the browser history instead of replacing the current one when only URL parameters are set?

Thanks!  
Sigurd

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/a/a13236fe7c76537471bc38e495cb18611b26170b.png)

https://www.loom.com/embed/2fa17e0d364d453e8a1d2f6c1a217a18

---

<div class="post-metadata">

**Author:** ![Olav](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/olav/32/63_2.png) [@Olav](https://community.appfarm.io/u/Olav)\
**Post date:** [January 28, 2026, 1:19pm UTC](https://community.appfarm.io/t/browser-history-behavior-when-setting-url-parameters-with-navigate/2238/2 "2026-01-28T13:19:33Z")

</div>

Hi!

When you use the **Navigate** action node without setting a View, it **replaces** the current URL in the browser history instead of adding a new entry. This is why when users click the browser back button, it appears to go back two steps - it’s actually going back to the URL that existed before the replacement occurred.

Instead of using Navigate without a View, explicitly set the current View along with your URL parameters:

- In your Navigate action node, set the **View** property explicitly to the current view

- Set your URL parameters as usual

- Set **Keep existing URL Parameters** to true if you want to preserve other parameters

This will add a new entry to the browser history instead of replacing the current one.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![SigurdEileras](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/sigurdeileras/32/2621_2.png) [@SigurdEileras](https://community.appfarm.io/u/SigurdEileras)\
**Post date:** [February 5, 2026, 4:23pm UTC](https://community.appfarm.io/t/browser-history-behavior-when-setting-url-parameters-with-navigate/2238/3 "2026-02-05T16:23:19Z")

</div>

I see 🙂

Still not _quite_ solving what I’m trying to fix.

The situation is: I have a full-screen dialog that I open from different tables in my app. For a lot of users it _looks_ like they navigated to a new view, but they’ve really just opened a dialog on top of the current view. I have a back button in the dialog that closes it, but many users use the built-in back button in the browser instead.

Any ideas on how I can make the browser back button close the dialog and keep them on the current view?

I was thinking of doing a workaround with **On view load** , but it doesn’t seem like that action is triggered when the browser back button only clears the URL params:  
`my.app/home?param=123` → `my.app/home`= `On view load not triggered`

---

<div class="post-metadata">

**Author:** ![Olav](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/olav/32/63_2.png) [@Olav](https://community.appfarm.io/u/Olav)\
**Post date:** [February 6, 2026, 7:08am UTC](https://community.appfarm.io/t/browser-history-behavior-when-setting-url-parameters-with-navigate/2238/4 "2026-02-06T07:08:58Z")

</div>

Is there a specific reason to use a full-screen dialog instead of a view in this scenario? I think you avoid these issues if you use a view.

---

<div class="post-metadata">

**Author:** ![SigurdEileras](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/sigurdeileras/32/2621_2.png) [@SigurdEileras](https://community.appfarm.io/u/SigurdEileras)\
**Post date:** [February 6, 2026, 8:53am UTC](https://community.appfarm.io/t/browser-history-behavior-when-setting-url-parameters-with-navigate/2238/5 "2026-02-06T08:53:38Z")

</div>

It’s mostly to keep the context (filters, table ordering, etc.) for the current view when opening the dialog.

Is it recommended to avoid using a full-screen dialog?

---

<div class="post-metadata">

**Author:** ![Olav](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/olav/32/63_2.png) [@Olav](https://community.appfarm.io/u/Olav)\
**Post date:** [February 6, 2026, 1:54pm UTC](https://community.appfarm.io/t/browser-history-behavior-when-setting-url-parameters-with-navigate/2238/6 "2026-02-06T13:54:31Z")

</div>

I see. Full-screen dialogs can be fine, as long as it’s clear to users that they have now opened a dialog and not navigated to a new view (and hence expecting to be able to use the browser back button).

You can try to see if the [On Browser History Change](https://docs.appfarm.io/reference/apps/app-settings#event-handlers) event handler might help you achieve what you are looking to do.

---

<div class="post-metadata">

**Author:** ![SigurdEileras](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/sigurdeileras/32/2621_2.png) [@SigurdEileras](https://community.appfarm.io/u/SigurdEileras)\
**Post date:** [February 6, 2026, 1:57pm UTC](https://community.appfarm.io/t/browser-history-behavior-when-setting-url-parameters-with-navigate/2238/7 "2026-02-06T13:57:39Z")

</div>

Ill check it out. Thx:)
