Skip to content

Commit

Permalink
Fixed bug whereby non-markdown files were not being correctly filtered.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglev committed Jun 28, 2022
1 parent 7db0653 commit 189cfee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const getRedirectFiles = (
const redirects =
frontMatter?.redirects ||
frontMatter?.redirect ||
(limitToRedirectedFiles ? [] : [file.basename]);
(limitToRedirectedFiles ? [] : [file.path]);
let output = [
...(Array.isArray(aliases) ? aliases : [aliases]),
file.basename,
Expand Down

0 comments on commit 189cfee

Please sign in to comment.