Skip to content

Commit

Permalink
Fixes bug with custom link format
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Nov 22, 2024
1 parent 820189b commit 15d640e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/models/entry/_setUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ var UID_PERMUTATIONS = 500;

function Candidates (blog, entry) {
var candidates = [];

var format = blog.permalink.isCustom ? blog.permalink.custom : blog.permalink.format;

// Don't use the permalink format for pages
// or posts with user specified permalinks.
if (
Expand All @@ -60,7 +61,7 @@ function Candidates (blog, entry) {
!entry.metadata.url &&
!entry.page
) {
entry.permalink = Permalink(blog.timeZone, blog.permalink.format, entry);
entry.permalink = Permalink(blog.timeZone, format, entry);
debug("Permalink", entry.permalink);
}

Expand Down

0 comments on commit 15d640e

Please sign in to comment.