diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-08-21 22:59:50 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-08-21 22:59:50 +0200 |
| commit | 259d014ef83ac9f4d7b85648758c93d0fe657777 (patch) | |
| tree | 367c9e9471304f06cae4b1a52e5f396f2f478573 /controller/guicontroller.php | |
| parent | 07c432f5552f975cfe19846bbd499ed5a7d8d7d6 (diff) | |
| download | grauphel-259d014ef83ac9f4d7b85648758c93d0fe657777.tar.gz grauphel-259d014ef83ac9f4d7b85648758c93d0fe657777.zip | |
fix link output for tomdroid
Diffstat (limited to 'controller/guicontroller.php')
| -rw-r--r-- | controller/guicontroller.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/controller/guicontroller.php b/controller/guicontroller.php index 8e260bc..313bf69 100644 --- a/controller/guicontroller.php +++ b/controller/guicontroller.php @@ -61,11 +61,13 @@ class GuiController extends Controller $res = new TemplateResponse('grauphel', 'index'); $res->setParams( array( - 'apiurl' => $this->urlGen->getAbsoluteURL( - $this->urlGen->linkToRoute( - 'grauphel.gui.index' - ) - ), + //we need to remove the trailing / for tomdroid + 'apiurl' => rtrim( + $this->urlGen->getAbsoluteURL( + $this->urlGen->linkToRoute('grauphel.gui.index') + ), + '/' + ) ) ); return $res; |
