From b991cf2ee8a456a15f2b566843d93a9b7a9a0c29 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 23 Aug 2023 04:30:31 +0000
Subject: [PATCH] fix: spa hijacks back button (closes #400)

---
 quartz/bootstrap-cli.mjs |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/quartz/bootstrap-cli.mjs b/quartz/bootstrap-cli.mjs
index 808deba..6a975ca 100755
--- a/quartz/bootstrap-cli.mjs
+++ b/quartz/bootstrap-cli.mjs
@@ -219,7 +219,7 @@
       )
     }
 
-    // get a prefered link resolution strategy
+    // get a preferred link resolution strategy
     const linkResolutionStrategy = exitIfCancel(
       await select({
         message: `Choose how Quartz should resolve links in your content. You can change this later in \`quartz.config.ts\`.`,
@@ -462,6 +462,12 @@
           await serveHandler(req, res, {
             public: argv.output,
             directoryListing: false,
+            headers: [
+              {
+                source: "**/*.html",
+                headers: [{ key: "Content-Disposition", value: "inline" }],
+              },
+            ],
           })
           const status = res.statusCode
           const statusString =

--
Gitblit v1.10.0