New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permalink for pages broken for when config.root #2105

ghost opened this Issue Aug 20, 2016 · 0 comments


1 participant

ghost commented Aug 20, 2016

in lib/models/page.js

Page.virtual('permalink').get(function() {
    return ctx.config.url + '/' + this.path;

should reflect:

Page.virtual('permalink').get(function() {
    return ctx.config.url + ctx.config.root + this.path;

Somewhat like

  Post.virtual('permalink').get(function() {
    var config = ctx.config;

    return config.url + config.root + this.path;

in lib/models/page.js

Same counts for category.js and tag.js

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