Within your pages, components, and plugins you can useuseRequestEvent to access the incoming request.
// Get underlying request eventconstevent=useRequestEvent()// Get the URLconsturl=event.path
👉
In the browser,useRequestEvent will returnundefined.