We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d2e346 commit 1ae59fcCopy full SHA for 1ae59fc
src/preview.ts
@@ -172,7 +172,7 @@ export class PreviewServer {
172
173
// Normalize the pathname (e.g., dropping ".html").
174
const normalizedPathname = config.md.normalizeLink(pathname);
175
- if (pathname !== normalizedPathname) {
+ if (url.pathname !== normalizedPathname) {
176
res.writeHead(302, {Location: normalizedPathname + url.search});
177
res.end();
178
return;
0 commit comments