fix link output for tomdroid
[grauphel.git] / controller / guicontroller.php
index 8e260bc..313bf69 100644 (file)
@@ -61,11 +61,13 @@ class GuiController extends Controller
         $res = new TemplateResponse('grauphel', 'index');
         $res->setParams(
             array(
         $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;
             )
         );
         return $res;