Pagify icon indicating copy to clipboard operation
Pagify copied to clipboard

Empty basePagePath creates absolute path preventing relative urls working

Open nmcgann opened this issue 11 years ago • 0 comments

There is a bug in the basePagePath code that forces a "/" if not specified.

Easy fix:

if (self.settings.basePagePath && self.settings.basePagePath.indexOf('/', self.settings.basePagePath.length - 2) === -1) {
        self.settings.basePagePath += '/';
}

Does not add a trailing slash to the default empty basePagePath.

nmcgann avatar Jan 14 '15 08:01 nmcgann