Skip to content

Commit 738ada2

Browse files
committed
book.toml: do not generate a /pinned-init file/redirect
Signed-off-by: Miguel Ojeda <[email protected]>
1 parent fcae9f2 commit 738ada2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

book.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ edit-url-template = ""
1313
no-section-label = true
1414

1515
[output.html.redirect]
16-
"/pinned-init" = "/pin-init"
16+
# Do not provide a `/pinned-init` redirect here, since we do not want a file
17+
# without an extension (e.g. Netlify takes care of serving the `/pinned-init`
18+
# path from the file automatically, like for the rest of the files, and having
19+
# a file there would be served by default as `text/plain` which would not work).
1720
"/pinned-init.html" = "/pin-init"
1821

1922
[output.html.fold]

0 commit comments

Comments
 (0)