Hi, I have a stupid problem that I can’t deal with for an hour. I have a reusable header that is visible on different pages. The header contains a button that should lead to the main subpage on the current page by removing the parameters in the url. For example:
trhherhtrt.com/page1/?p=subpage1 => trhherhtrt.com/page1
trhherhtrt.com/page1/?p=subpage2 => trhherhtrt.com/page1
trhherhtrt.com/page2/?p=subpage1 => trhherhtrt.com/page2
trhherhtrt.com/page2/?p=subpage2 => trhherhtrt.com/page2
Unfortunately I can’t select a dynamic destination page dependent on the current page.