Skip to content

macOS 27 Safari doesn't work with Node-RED v5.0.7 #5965

Closed

Description

@ashokaiyar

Switching between flow tabs results in the entire page being reloaded and the interface returns to the first/main flow tab. As shown in the attached video. Don't know if this can be fixed on the Node-Red. I also submitted an Apple bug report.

Activity

  1. ashokaiyar commented on Sep 20, 2026

    @ashokaiyar
    Author

    @bonanitech

    Thank you! I just found that earlier today - don't know how I missed it last night.

  2. AdamVR7 commented on Oct 3, 2026

    @AdamVR7

    I can confirm that this issue is not limited to macOS. I am seeing the same behaviour on an iPad running iPadOS 27 with Safari 27.

    Behaviour

    When the Node-RED editor is open and I tap another flow tab:

    1. Instead of switching to the selected flow, Safari reloads the entire Node-RED editor page.
    2. After the reload, the editor returns to the first/main flow tab.
    3. Repeating the attempt to switch tabs can trigger the same full-page reload again.

    This looks essentially identical to the behaviour shown in the video in the original report.

    So the problem also affects Safari/WebKit on iPadOS 27, not just Safari 27 on macOS. That may help narrow this down to a Safari/WebKit 27 change rather than something macOS-specific.

    If there is any specific test, browser console output, or Node-RED editor diagnostic information that would help isolate the problem, I can try to provide it from the iPad.

  3. knolleary commented on Oct 14, 2026

    @knolleary
    Member

    This should be resolved in our next maintenance release. #5992

  4. AdamVR7 commented on Oct 22, 2026

    @AdamVR7

    Hi! I updated to Node-RED 5.0.9, which includes #5992.
    Immediately after the update and automatic restart, the editor worked correctly on the first opening. However, on subsequent openings the original behaviour returned: switching to another flow tab causes the entire editor page to reload and it returns to the first flow tab.

    So unfortunately the issue is not fully resolved by the Monaco 0.57.0 update. I am still seeing it on iPadOS 27 with Safari 27.

  5. ashokaiyar commented on Oct 22, 2026

    @ashokaiyar
    Author

    Issue also persists with Safari 27 on macOS 27.

  6. LavalControl commented on Oct 26, 2026

    @LavalControl

    I'm running Safari 27 and a variety of Nodered including 3.1.0 on an old pi, plus 5.0.8 on a NUC and I have the problem.. clear on Chrome...

  7. AdamVR7 commented on Oct 26, 2026

    @AdamVR7

    I investigated this issue further and found a possible direction worth testing.

    In packages/node_modules/@node-red/editor-client/src/js/ui/workspaces.js, the workspace switching logic directly modifies window.location.hash:

    window.location.hash = 'flow/' + tab.id;

    There is also a second assignment that clears the hash.

    Given that:

    • The problem persists after upgrading Monaco to 0.57.0.
    • Switching to ACE does not eliminate the page reload.
    • The issue affects multiple Node-RED versions.
    • Safari 27 reloads the entire editor when switching flow tabs.

    I suspect the remaining issue may be related to Safari 27/WebKit's handling of URL fragment navigation rather than Monaco itself.

    Suggested investigation:

    Could we test replacing the direct location.hash assignments with the History API (history.pushState() or history.replaceState()) to determine whether this prevents the full-page reload?

    This would require checking compatibility with existing hashchange handlers, browser Back/Forward navigation, and initial flow selection.

    I have not verified this as a fix, but it seems like a relatively focused way to isolate the cause without requiring HTTPS or changing the user's deployment configuration.

    Hopefully this helps narrow down the Safari 27 regression.

    Update: The proposed workaround works! Confirmed on Node-RED 5.0.9 with Safari 27 on iPadOS 27.

    I tested the hypothesis directly against my running Node-RED installation.

    In both red.js and red.min.js, I replaced the workspace-switching assignment:

    window.location.hash = 'flow/'+tab.id;

    with the equivalent History API operation:

    history.replaceState(history.state, '', '#flow/'+tab.id);

    (The minified file was patched using its corresponding variable names.)

    Result: Switching between flow tabs now works normally. Safari no longer reloads the entire Node-RED editor or returns to the first tab.

    No HTTPS, reverse proxy, Node-RED configuration changes, or server restart were required.

    Only the workspace-switching assignment was changed. The other location.hash references were left untouched.

    This provides experimental evidence that Safari 27's handling of fragment navigation is involved in the regression.

    The change is not yet a fully tested upstream fix; browser history behavior and other navigation scenarios should still be verified.

    Hopefully this gives the maintainers a concrete, reproducible fix candidate for #5965.

  8. added theissue type on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions