Skip to content

Commit

Permalink
fix(preview): redirect slug
Browse files Browse the repository at this point in the history
  • Loading branch information
BJvdA committed May 5, 2021
1 parent d8805fa commit bfbcd2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/next/previewHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const nextPreviewHandlers = ({

if (disableStoryCheck) {
res.setPreviewData({});
res.redirect(`/${req.query.slug}`);
res.redirect(`${req.query.slug}`);
return;
}

Expand Down

1 comment on commit bfbcd2f

@vercel
Copy link

@vercel vercel bot commented on bfbcd2f May 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.