Skip to content

Commit f404ebf

Browse files
committed
Fix substring matching in active link logic
1 parent 8404fad commit f404ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MultiDocumenter.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function make_global_nav(dir, docs, thispagepath, brand_image, search_engine, pr
156156
Dict(
157157
"href" => string(rp, prettyurls ? "/" : "/index.html"),
158158
"class" =>
159-
startswith(thispagepath, joinpath(dir, doc.path)) ?
159+
startswith(thispagepath, joinpath(dir, doc.path, "")) ? # need to force a trailing pathsep here
160160
"nav-link active nav-item" : "nav-link nav-item",
161161
),
162162
)

0 commit comments

Comments
 (0)