I have this workflow and the reponse to webhook trigger node is not working with a redirect.
The redirect is not shooting.
I’m running on a self-hosted n8n instance with n8n version 2.3.6.
Hey @ralph_1982 Can you share your workflow so we can look at your configurations of the ‘Response to webhook’ node and the webhook node, and closely see why it does not redirect the user
Which one of 3 webhook trigger nodes has a problem with a redirect?
@ralph_1982 Can you share your workflow JSON in the ‘Preformatted Text’ box cause this JSON you have shared is invalid and i cannot paste this JSON of your workflow into my n8n instance as it does nothing cause of the invalid JSON syntax
@Anshul_Namdev My bad. Here it is:
Dear @AleGlowa ,
not the webook trigger node is causing the problem but both webhook response nodes.
Cheers!
Hey @ralph_1982 i have tested the configs of your Webhook and both the Response to Webhook nodes and they seem to work really well, i guess the issue is now in the middle nodes and how they behave cause webhooks are working pretty well and both are redirecting as they should
As its pretty straight that now the issue is not with the configs of webhooks but with the nodes we have in middle, or if i say the LAST second node have tried some round offs like removing last node and running something like that?
As posted on the initial screenshot, the request goes through until the last node, which is the respond to webhook node. I don’t see, why there should be a problem in between the trigger node and the respond to trigger node, as the respond to trigger node should be triggered once the workflow is finished regardless of what is happening in between. Shouldn’t it?
You are right @ralph_1982 i was assuming some nodes would act differently, as you confirmed that everything in the middle works alright, and yes if the workflow execution reaches the Respond to Webhook node it should redirect you to page, that is strange due to the fact there is no error in the middle and even the respond to webhook gets executed but it does not redirect you to the website, have you tried restarting your n8n instance?
I think it might be a browser issue, maybe an ad blocker or something..
Did you try incognito mode or disabling ad blockers, @ralph_1982?
Or does this only happen with this specific workflow?! or is it happening with any workflow in your instance?
In n8n, webhooks don’t redirect automatically. You must return the redirect explicitly.
Use a Respond to Webhook node, set the response code to 301 or 302, and add a Location header with the redirect URL.
Also make sure the Webhook trigger is set to “Using Respond to Webhook node” and only one response node runs.
This is expected behavior in n8n v2.3.6+.
Dear @mohamed3nan ,
there is no ad blocker in place. Until now it only happened on this specific workflow.
Regards
hmmm, weird but good to know that the issue is isolated to this specific workflow..
Could you please try removing nodes one by one (for example the Outlook node) and check if it works afterward?
This way you can better identify which node might be causing the issue..
also use the latest version if you can:
It seems like restarting the instance worked out. Thanks all for the support!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

