From 12dc62f00bc6ab03b5dd4abb6df4bc98b97bd1c7 Mon Sep 17 00:00:00 2001 From: Alexander Shvets Date: Fri, 31 Jul 2015 17:34:17 +0300 Subject: [PATCH] fix issue #618 if index.html renamed, navigation doesn't work --- 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..56334b474 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(/\/?(\w+\.html)?(\?[^#]*)?#.*/, ""); } });