Commit a4b7d2a3 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Remove trailing slash from baseUrl.

Fixes the issue of web servers that can't handle double-slashes //
in URL-s.
parent f2d300a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ Ext.define('Docs.controller.Content', {
     * @return {String} URL
     */
    getBaseUrl: function() {
        return document.location.href.replace(/#.*/, "").replace(/index.html/, "");
        return document.location.href.replace(/\/?(index.html)?#.*/, "");
    },

    /**