Skip to content

Empty basePagePath creates absolute path preventing relative urls working #24

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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