Skip to content

Commit 69b71fd

Browse files
fix: SSR bug when using $url helper
1 parent c98eb3c commit 69b71fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/runtime/helpers/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const url = {
106106
return (pathElemOrNode, params, options) => {
107107
const createUrl = getCreateUrl(fragment.fragment)
108108
// if we're dealing with a string, return the rendered url
109-
if (!(pathElemOrNode instanceof HTMLAnchorElement))
109+
if (!(globalThis.HTMLElement && pathElemOrNode instanceof HTMLElement))
110110
return createUrl(pathElemOrNode, params, options)
111111

112112
// if we're dealing with an anchor element, update it

0 commit comments

Comments
 (0)