mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-01 06:28:14 +00:00
fix: content-disposition inline should apply to all resource types (closes #728)
This commit is contained in:
parent
85f05ea99b
commit
b014d060f3
2 changed files with 2 additions and 2 deletions
quartz/util
|
@ -52,7 +52,7 @@ function sluggify(s: string): string {
|
|||
.split("/")
|
||||
.map((segment) =>
|
||||
segment.replace(/\s/g, "-").replace(/%/g, "-percent").replace(/\?/g, "-q").replace(/#/g, ""),
|
||||
) // slugify all segments
|
||||
)
|
||||
.join("/") // always use / as sep
|
||||
.replace(/\/$/, "")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue