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)?(\?[^#]*)?#.*/, ""); } });