From 71160d82d57a12ca3ec38cba50e33a1d53aa2c9d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pat=20M=C3=A4chler?= <u@valio.ch>
Date: Tue, 21 Feb 2017 14:39:27 +0100
Subject: [PATCH] Fix base URL if window.location contains index.php

I assume it was forgotten that this replace part should be renamed, after it was decided that index.html shall become index.php.

Currently I have to use a pretty ugly hack with the --body-html config

```
var getBaseUrl = Docs.controller.Content.prototype.getBaseUrl;
Docs.controller.Content.prototype.getBaseUrl = function(){
    var r = getBaseUrl.apply(this,arguments);
    r = r.replace('/index.php','');
    return r;
}
```
---
 template/app/controller/Content.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/template/app/controller/Content.js b/template/app/controller/Content.js
index 102b41313..6ccdbe74d 100644
--- a/template/app/controller/Content.js
+++ b/template/app/controller/Content.js
@@ -37,6 +37,6 @@ Ext.define('Docs.controller.Content', {
      * @return {String} URL
      */
     getBaseUrl: function() {
-        return document.location.href.replace(/\/?(index.html|template.html)?(\?[^#]*)?#.*/, "");
+        return document.location.href.replace(/\/?(index.php|template.html)?(\?[^#]*)?#.*/, "");
     }
 });