-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
"n8n User Auth" in "Chat Trigger" seems redirect to the wrong url when N8N_PATH is set #9082
Comments
Hey @chhaj5236, I have created |
Hi @Joffcom, thanks for the feedback. It's not easy for us to apply a subdomain, |
Hey @chhaj5236, Is that a different sub path for multiple instances? One of the chats we have had internally was around possibly removing support for |
@Joffcom It's not for multiple n8n instances, we have other services behind the proxy. |
@chhaj5236 I'm getting a similar issue, with the chat trigger. In this screen, the chat works fine but when I open the chat after "publishing" it, I get an error. This window is calling the localhost, but I have never used the localhost; I have always used railway any idea what it can be? |
Bug Description
I set N8N_PATH to "/n8n/" and set "Chat Trigger" to "n8n User Auth". Then I open "Chat Url" in a web browser, it will redirect me to
http://localhost:5678/signin?redirect=http://localhost:5678/n8n/webhook/xxxx/chat
, buthttp://localhost:5678/signin
does not exist.I checked the source code and found that "Chat Trigger" does not take N8N_PATH as the prefix when trying to check the user auth or redirecting the url.
I also checked
http://localhost:5678/n8n/rest/login
is working as expected, buthttp://localhost:5678/rest/login
is not.I wonder if I miss something like other environment need to be set?
To Reproduce
N8N_PATH
to/n8n/
andWEBHOOK_URL
tohttp://localhost:5678/n8n/
then deploy the n8n service.Workflows
page andadd a new workflow
and aChat Trigger
node.Activate
the workflow.Chat Trigger
node,Make Chat Plublic Available
and setAuthentication
ton8n User Auth
.Chat Url
and open it in the web browser.Expected behavior
should redirect to the
Chat Window
.Operating System
n8nio/base
n8n Version
1.31.0
Node.js Version
18.19.1
Database
SQLite (default)
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: