Skip to content

Commit

Permalink
fix: append trailing slash in manifest (#1486)
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Zerelles committed May 21, 2021
1 parent 94c1074 commit a6de521
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/kit/src/core/create_manifest_data/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ export default function create_manifest_data({ config, output, cwd = process.cwd
b.splice(i + 1);

const path = segments.every((segment) => segment.length === 1 && !segment[0].dynamic)
? `/${segments.map((segment) => segment[0].content).join('/')}`
? `/${segments.map((segment) => segment[0].content).join('/')}${
config.kit.trailingSlash === 'always' && segments.length > 0 ? '/' : ''
}`
: null;

routes.push({
Expand Down

0 comments on commit a6de521

Please sign in to comment.