Skip to content

feat: [1125] Let ui-link open in a new browser tab - #2380

Merged
n-lark merged 4 commits into
FlowFuse:mainfrom
officialasishkumar:1125-ui-link-target
Nov 16, 2026
Merged

n-lark merged 4 commits into
FlowFuse:mainfrom
officialasishkumar:1125-ui-link-target

Conversation

@officialasishkumar

Copy link
Copy Markdown
Contributor

Description

Adds an Open In option to the ui-link config node, so a link in the Dashboard navigation can open in a new browser tab and the Dashboard stays open.

  • Two options, using plain wording as suggested in the issue: Same tab (default, the current behaviour) and New tab.
  • With "New tab", the sidebar link is rendered with target="_blank" and rel="noopener".
  • The node changes missing or unknown values to _self. The editor shows "Same tab" for links created before this option existed. Existing flows behave as before.
  • Adds a test suite for the ui-link config node (test/nodes/config-nodes/ui_link.spec.js), en-US/de editor strings, and docs for the new option.

The "named tab" idea from the issue comments is left out to keep this to the two options in the issue description. It can be added later as a third option.

Testing

  • npm test and npm run lint pass.
  • Manual check in Node-RED with three links ("New tab", "Same tab", and an older link with no target):
    • The "New tab" link renders with target="_blank" rel="noopener". Clicking it opens the URL in a new tab and leaves the Dashboard open.
    • The other two links render without a target and open in the same tab.
    • In the editor, the older link shows "Same tab" and saves as _self.

Related Issue(s)

Closes #1125

Links added to the Dashboard navigation with ui-link always opened in
the same tab, replacing the Dashboard. Users linking to external tools
had no way to keep the Dashboard open.

Adds an "Open In" option to the ui-link config node with two choices,
using plain wording rather than HTML target names:
- "Same tab" (default, the existing behaviour)
- "New tab"

When "New tab" is selected the sidebar link is rendered with
target="_blank" and rel="noopener". The node normalises missing or
unknown values to "_self", and the editor shows "Same tab" for links
created before this option existed, so existing flows keep their
current behaviour.

Includes a new ui-link config node test suite, en-US/de editor strings
and docs for the new option.

@n-lark n-lark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution, looks good!

Comment thread docs/en/nodes/config/ui-link.md Resolved
@n-lark n-lark changed the title feat: [1125] Let ui-link open in a new browser tab feat: [1125] Let ui-link open in a new browser tab - edit Nov 16, 2026
@n-lark n-lark changed the title feat: [1125] Let ui-link open in a new browser tab - edit feat: [1125] Let ui-link open in a new browser tab Nov 16, 2026
@n-lark
n-lark merged commit e3dd1ba into FlowFuse:main Nov 16, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The UI-Link node needs a target mode to be selected

2 participants