Using getBasePath() instead of getBaseUrl() to detect basePath.
authorSteffen Dietz <steffo.dietz@googlemail.com>
Thu, 9 Feb 2012 14:33:22 +0000 (15:33 +0100)
committerSteffen Dietz <steffo.dietz@googlemail.com>
Thu, 9 Feb 2012 14:33:22 +0000 (15:33 +0100)
module/Application/Module.php

index a798668..2b220cd 100644 (file)
@@ -74,7 +74,7 @@ class Module implements AutoloaderProvider
         $view->plugin('url')->setRouter($app->getRouter());
         $view->doctype()->setDoctype('HTML5');
 
-        $basePath = $app->getRequest()->getBaseUrl();
+        $basePath = $app->getRequest()->getBasePath();
         $view->plugin('basePath')->setBasePath($basePath);
 
         $this->view = $view;