Ability to Right click a link and open in new tab or window?

0
Is it possible to right click a link and open in new tab? Currently getting redirected to the home page. I know its a SPA and all, but even in react/angular, you can do this.
asked
3 answers
4

Hi Benjamin,

You can create a javascript which accepts a string parameter,

in the java script you can this code:

window.open(url, "_blank");

and pass the URL inside the javascript,

now, on the click of the link, you can call a nanoflow, and use this javascript action in the nanoflow.

 

Let me know, if you have any issues,

Hope it helps!

answered
0

Seems impossible currently, but you might want to vote for the idea which requests a implementation of said feature: https://community.mendix.com/link/spaces/app-development/ideas/4674

answered
0

Hi,


By default, Mendix navigation (buttons, nanoflows, page opens) is handled client-side in a SPA manner, so standard browser actions like right-click → open in new tab are not supported.

If you need this behavior, you must use a real URL-based link instead of Mendix navigation actions.

Working approaches:

  1. Use a Link button with a URL
  2. Configure a Link button and set:
  • Link to: URL
  • Provide a proper URL (for example using deeplink)

Then users can right-click and open in a new tab.

  1. Use Deeplink module (recommended)
  2. Create a deeplink for your page and use it as a URL:
/link/myPage?id=...

This enables:

  • Direct navigation
  • Opening in new tab
  • Bookmarking
  1. Set “Open link in new tab”
  2. For Link buttons, enable:
  • Open in new tab

What will NOT work:

  • Page opens via microflow/nanoflow
  • Action buttons (these are SPA actions, not real links)


Right-click/open-in-new-tab is only possible when using real URLs. In Mendix, this requires using Link buttons with Deeplink-based navigation instead of standard page or microflow navigation.


answered