Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix generate cleanUrl in post-auth.js with hostname #390

Open
devromarus opened this issue Jun 10, 2022 · 1 comment
Open

Fix generate cleanUrl in post-auth.js with hostname #390

devromarus opened this issue Jun 10, 2022 · 1 comment

Comments

@devromarus
Copy link

devromarus commented Jun 10, 2022

Description

Function postAuth can't redirect to full cleanUrl.

Because we have an app name after the hostname and current version redirect with error.

Our url:
http://host-name/app-name/path

Redirect url in current version:
http://host-name/path

Add generation for redirect as in protect.js

const host = request.hostname
const headerHost = request.headers.host.split(':')
const port = headerHost[1] || ''
const protocol = request.protocol

const redirectUrl = protocol + '://' + host + (port === '' ? '' : ':' + port) + cleanUrl

Discussion

No response

Motivation

No response

Details

#391

@zingmane
Copy link

zingmane commented Jun 4, 2024

I am in the same situation. This issue with PR (#391) fixing it is open for a very long time. Is it planned that this will be merged at some point?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants