Skip to content

Redirect with httpRoot configuration setting #2

@madmax76

Description

@madmax76

When the httpRoot parameter in settings.js is set:
httpRoot: '/nodered',
GitHUB will redirect to the URL without in this case '/nodered'

When leaving the httpRoot setting default, it works fine.

I have been looking as a non programmer to this code:

    var callbackURL = opts.baseURL+
        ((opts.baseURL[opts.baseURL.length-1] === "/")?"":"/")+
"auth/strategy/callback";

Could anything be wrong there?
After clicking the github button I am redirected to:
http://localhost/auth/strategy

baseURL: "http://localhost/nodered/",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions