Returns the current shareable URL.
Picks window.location.href when available (always populated by the Permalink sync). Falls back to an empty string in non-browser environments (SSR / tests).
window.location.href
Absolute URL string, or "" if window is unavailable.
""
window
Returns the current shareable URL.
Picks
window.location.hrefwhen available (always populated by the Permalink sync). Falls back to an empty string in non-browser environments (SSR / tests).