Skip to content

forcePageReload ignores httpNodeRoot #2149

Description

@sonnyp

Current Behavior

function forcePageReload (err) {

When an error occurs, forcePageReload is called and redirects user to /dashboard.

Expected Behavior

However the base path can be changed using the httpNodeRoot setting, in which case the user is presented with a 404 on error.

Instead; forcePageReload should redirect to join(httpNodeRoot || '/', 'dashboard')

Steps To Reproduce

No response

Environment

  • Dashboard version: ~1.30.2
  • Node-RED version: 5.0.0
  • Node.js version: 24
  • npm version:
  • Platform/OS:
  • Browser:

Have you provided an initial effort estimate for this issue?

I am not a FlowFuse team member

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageNeeds looking at to decide what to do

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions