Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/bigskysoftware/htmx
/ normalizePath
Function
normalizePath
test/attributes/hx-replace-url.js:5–8 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
3
4
// Helper to normalize paths like htmx does
5
function
normalizePath(path) {
6
const
url =
new
URL(path, window.location.href)
7
return
url.pathname
8
}
9
10
beforeEach(
function
() {
11
this.server = makeServer()
Callers
1
hx-replace-url.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected