1

I recently upgraded to EE2 2.11.7 and I was using a redirect to automatically redirect user if on search results if there was an exact match.

This was working fine for me previously: {if total_results == 1}{redirect="{page_url}"}{/if}

But now getting error, The URI you submitted is not allowed.. And the URL is adding the absolute path on top of the domain like this: http://example.com/http:/example.com/page/url/entry

I can use some jQuery to fix with a trigger click, but it's kind of clunky. Any way to fix that url to properly redirect?

1 Answer 1

2

Try using {page_uri} instead of {page_url} The redirect tag is looking for a relative, not absolute value.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.