Hi Shreyash,
With Mendix 10.6+, I would not use a custom “Set URL” widget for this. Microflow URLs are designed for exactly this scenario.
When a microflow has a configured URL, Mendix executes the microflow during client startup. If that microflow contains a Show page action, that page becomes the first page shown. The browser URL should remain the configured microflow URL.
For example:
https://abc.com/p/employee-report/{Employee/Name}
or, if you're using a primitive/query parameter:
https://abc.com/p/employee-report?employee=John
Then configure the microflow URL and let the microflow retrieve the required employee and Show page.
If the browser is changing from:
/p/employee-report/John
to:
/p/employee/John
after the microflow executes, I would check whether the page being shown also has its own Page URL. Mendix uses the page URL when navigating directly to a page; if the page has no URL configured, the previous URL can remain visible.
So I would check these first:
Also, the old Deep Link module is deprecated from Mendix 10.6 and replaced by Page URLs and Microflow URLs, so I wouldn't introduce the old module just to solve this.
If the requirement is only to show the base application URL after opening the link, that's a different requirement. But if the goal is to keep the original /p/... URL visible and reusable, the built-in Page/Microflow URL mechanism is the correct approach.
Hope this helps.