Updating a part of page content when a URL changed. (without plugin)

I am trying to update a part of the page content in conjunction with the URL. But the updating the page works only when I click on browser “back/forward” button. Here is the example page.

Please note the browser URL window is changing when the button is clicked. Group named “Collection1” is supposed to be visible when the URL consists of “collection1”.
スクリーンショット 2020-05-20 12.03.01

I used a simple javascript to update the URL.
スクリーンショット 2020-05-20 12.03.58

I know I can update the whole page via “Open an external website”. But this is not good in terms of UX. I also trying to achieve this function without a plugin such as “Sudsy page”. (btw, this is great plugin!)

Thanks in advance.

1 Like

Hmm I see the issue you are having because you are using the website url’s path no parameters. I’ve honestly been a little stuck on this too, so if you figure it out let me know!

1 Like

Hi @johnny,

Thanks for the response.
What do you mean by “the website url’s path no parameters.” exactly??

I am guessing the issue is related to “Get data from page URL” in the condition of visibility. Could be a bug?

By path I mean, for example, https://example.com/page1/view

And yeah it was referring to “Get Data from Page URL”

1 Like

I think I got it.


This topic was automatically closed after 70 days. New replies are no longer allowed.