senchalabs / jsduck

Simple JavaScript Duckumentation generator.
http://docs.sencha.com/
GNU General Public License v3.0
1.5k stars 238 forks source link

Fix base URL if window.location contains index.php #663

Open valioDOTch opened 7 years ago

valioDOTch commented 7 years ago

I assume it was forgotten that the getBaseUrl regular expression should be adapted, 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;
}