Strip trailing slash from the blog URL #6
No reviewers
Labels
No labels
bug
confirmed
critical
discussion
documentation
enhancement
help-needed
suggestion
support
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: nicd/scriptorium#6
Loading…
Reference in a new issue
No description provided.
Delete branch "trunk"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If
blog_url
has a trailing slash in the arguments todefaults.default_config()
,uri_parse
will setpath
to"/"
, which leads toroot
in the path configuration also becoming"/"
. In the sample configurationblog_url
is"https://my.blog.example/"
. This leads tohref
s in the output that look like the following:<link href="//css/normalize.css" rel="stylesheet">
which do not resolve correctly in the browser. The suggested solution is to strip a trailing slash from the blog URL, if present.
Thanks! 💜
mentioned in commit
32cba3db6e