Zoo Visitor
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Discontinued
Is the login return url parameter relative?
Support Request
travisb
|
Posted: 20 August 2014 11:30 AM |
|
|
|
The login return parameter isn’t supposed to be relative is it? For example:
login form is on x.local/test/misc
return parameter is return=“site/index”
after login you end up at: x.local/test/site/index
The form source is (in part):
<form method="post" action="http://x.local/test/misc" > <div class='hiddenFields'> <input type="hidden" name="visitor_action" value="login" /> <input type="hidden" name="RET" value="site/index" />...
(tested on a page with no other elements other than the form)
ee 2.8.1 with zv 1.3.32 (local dev install)
|
|
|
ExpressionEngine Zoo
|
Posted: 20 August 2014 11:38 AM |
# 1
|
|
|
Is your site index set to “x.local/test/” ? If you want to return to the site index, why not use return=”/”?
|
|
|
travisb
|
Posted: 20 August 2014 11:49 AM |
# 2
|
|
|
The site/index was just an example for the test. I get a smilier result for other templates, for example using return=“customer/account” goes to “x.local/test/customer/account”.
|
|
|
ExpressionEngine Zoo
|
Posted: 20 August 2014 11:53 AM |
# 3
|
|
|
Is your site root directory set to “x.local/test/” ? https://ellislab.com/expressionengine/user-guide/cp/admin/general_configuration.html#url-to-the-root-directory-of-your-site
A return parameter without leading slash will always start from the root
|
|
|
travisb
|
Posted: 20 August 2014 11:58 AM |
# 4
|
|
|
“URL to the root directory of your site” set to http://x.local/ .
“test” is only a template group and not set in any config.
|
|
|
ExpressionEngine Zoo
|
Posted: 20 August 2014 11:59 AM |
# 5
|
|
|
add a leading slash to your return parameter
|
|
|
travisb
|
Posted: 20 August 2014 12:08 PM |
# 6
|
|
|
Ok, that worked. Strange though because the registration form return parameter works without leading slash.
|
|
|