Hi,
I have a form to login on every page. In the form I use $this->url() to see what page the user is loging in from:
PHP Code:
<div class="submit">
<input type="hidden" name="page" value="<?php echo $this->url(); ?>"/>
<input type="submit" class="submit" value="Login"/>
</div>
The $this->url() gives a value like /sitename/controller, but when I try to use this is in my controller with a redirect I get sent to /sitename/sitename/controller. I could remove /sitename from the "page" value but I guess there has to be an easier way to send the user back from the page that he has logge in from. I've googled like crazy but with no succes.