From: Christian Weiske Date: Thu, 21 Aug 2014 20:59:50 +0000 (+0200) Subject: fix link output for tomdroid X-Git-Tag: v0.1.0~9 X-Git-Url: https://git.cweiske.de/grauphel.git/commitdiff_plain/259d014ef83ac9f4d7b85648758c93d0fe657777 fix link output for tomdroid --- 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;