Skip to content

Commit d14e0ac

Browse files
authored
[docs] fix url bug in hooks example (#4643)
1 parent 7f50b59 commit d14e0ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/05-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This function runs every time the SvelteKit server receives a [request](/docs/we
1414
/// file: src/hooks.js
1515
/** @type {import('@sveltejs/kit').Handle} */
1616
export async function handle({ event, resolve }) {
17-
if (event.request.url.startsWith('/custom')) {
17+
if (event.url.pathname.startsWith('/custom')) {
1818
return new Response('custom response');
1919
}
2020

0 commit comments

Comments
 (0)