git.cweiske.de
/
grauphel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix link output for tomdroid
[grauphel.git]
/
controller
/
guicontroller.php
diff --git
a/controller/guicontroller.php
b/controller/guicontroller.php
index 8e260bc0a269795a414bcc2b1e310a3a9912b0c4..313bf6987f188180950bfb653e8fd717cf970c1b 100644
(file)
--- a/
controller/guicontroller.php
+++ b/
controller/guicontroller.php
@@
-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;