EE 2.7.2 Structure 3.3.13
I've got a site where I have a front end login form that is on all pages as a modal when clicking the login link in the header. Everything works fine, however for the redirect="" parameter I would like the form to redirect to the page it was filled out on.
using this code:
{exp:member:login_form return="{page_url}"}
<label>Username</label>
<input type="text" name="username" value="" maxlength="32" size="25">
<label>Password</label>
<input type="password" name="password" value="" maxlength="32" size="25">
<input type="submit" name="submit" value="Submit" class="button small">
{/exp:member:login_form}
results in a broken url http://domain.com/%7Bpage_url%7D
and a white page with this message
The URI you submitted has disallowed characters.
I tried using low variables and preparsing the {page_url} (same as embedding a template) but that also did not work.
Is there a way to get the {page_url} to work in the login form?