I have a Bricks form and I’m using the redirect feature with this tag:
{url_parameter:redirectto}
I have echoed this in a plain text box and it shows up correctly, the URL is there just as it should be.
The parameter is set on the page where the form exists, such as:
example.com/register/?redirectto=https%3A%2F%2Fexample.com%2Fsome-page%2F
To add the parameter, I’m running the URL through urlencode(get_permalink())
.
I’ve also not encoded the URL so that it would look like this:
example.com/register/?redirectto=https://example.com/some-page/
I get the same result either way.
Basically, it just doesn’t redirect, nothing happens at all.
The redirect works fine if I insert a link manually or via other tags or plain text. But when I insert the URL using the {url_parameter}, nothing happens.
I tried adding the raw filter, not sure exactly how that works but I thought maybe something was goofing the URL.
{url_parameter:raw:redirectto}
or
{url_parameter:redirectto:raw}
<<< this one just screws up the dynamic code output
It just doesn’t work for me, not sure what I’m missing!