Commit Graph

2 Commits

Author SHA1 Message Date
Eric Spencer b12948bbef fix: undefined search reference and misplaced index suffix
`search` was never declared, so any link whose entire path is `/index.html`
or `/index.php` (the path is empty once the suffix is stripped) threw a
ReferenceError whenever the hostname had a subdomain or an unknown SLD.
`pathSegments.length` is what the check was reaching for.

With that fixed, those links reached a second bug: `indexSuffix` was
appended after the query and hash, so `x.io/index.html?q=1` decoded to
`x.io?q=1/index.html`. It is now spliced back in before the first `?`/`#`.
2026-08-14 09:45:13 +03:00
p2r3 a4ddfaeefa initial program commit 2026-08-09 13:17:47 +03:00