Skip to content

Empty basePagePath creates absolute path preventing relative urls working #24

@nmcgann

Description

@nmcgann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions