How to open page in the same tab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2022 12:23 AM
I want my users to navigate between pages created in UI Builder while keeping the number of opened tabs constant.
Current setup
- Page x has a required parameter sysId.
- When I do Link to Destination with the same route x but a different sysId, a new workspace tab is opened and the browser URL changes from /x/originalSysId to /x/newSysId
- To have it open in the same tab, I can set the Target Route to "current" in the Link to Destination event, but when I do this the following happens:
- the URL gets changed from /x/originalSysId to /x/originalSysId/sub/x/newSysId (this is acceptable)
- a Back button appears (this is kind of acceptable)
- The tab title is not updated (that's a problem - it would confuse the users)
I guess I need either:
- Have the page loaded in the same tab without that sub part
- So far it seems this might work if the sysId parameter is not required but optional - however I consider this a workaround
- Provided that loading in the same tab is not possible, I would like the old tab to close automatically
- or to somehow force the tab title (I'm setting it using helpers.updateStatus({title: "New title"}) )
Thank you for your suggestions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2025 04:35 AM
Hi @Martin76 ,
alongside your link to destination event, try to add Screen Status Changed event as well. There's advanced option where you can check "Screen has update" option. This should report the chrome that screen has changed and should try to refresh the cached version of your screen.
Also consider multiple places where you try to trigger this event, because when link to destination is clicked the screen could still be on the old one. (so maybe on page load on body component).
