fix link output for tomdroid
authorChristian Weiske <cweiske@cweiske.de>
Thu, 21 Aug 2014 20:59:50 +0000 (22:59 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 21 Aug 2014 20:59:50 +0000 (22:59 +0200)
controller/guicontroller.php

index 8e260bc..313bf69 100644 (file)
@@ -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;