]> dev.renevier.net Git - syj.git/blobdiff - application/views/helpers/Returnto.php
add backslash to returnto baseurl
[syj.git] / application / views / helpers / Returnto.php
index a90822ec4531b4a89cdad1cc255d2dd43374041b..128fec474bddd20677cfe75c9c8318595d8ac0d4 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*  This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/*  This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
     and is published under the AGPL license. */
 
 class Syj_View_Helper_Returnto extends Zend_View_Helper_HtmlElement
@@ -16,7 +16,7 @@ class Syj_View_Helper_Returnto extends Zend_View_Helper_HtmlElement
 
     public function returnto() {
         $returnto = $this->getHref();
-        $baseurl = $this->view->baseUrl();
+        $baseurl = $this->view->baseUrl() + '/';
 
         if ($returnto === false) {
             return $this->view->translate('You can now') . ' '