Skip to content

Commit

Permalink
fix: link
Browse files Browse the repository at this point in the history
  • Loading branch information
arpowers committed Mar 24, 2020
1 parent da4ca15 commit f9e149e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion @apps/factor/src/extend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ addPostType({
hideAdmin: true,
permalink: (post: FactorExtensionInfo): string => {
const baseRoute = post.extensionType == "plugin" ? "/plugin" : "/themes"
return `${baseRoute}/${post.permalink}`
const permalink = post.permalink || ""
return `${baseRoute}/${encodeURIComponent(permalink)}`
}
})

0 comments on commit f9e149e

Please sign in to comment.