class Location
extends URL
Re-export
import { Location } from "https://deno.land/x/gauntlet@v0.0.9/imports/happy_dom.ts";
Methods
assign(url: string): void
Loads the resource at the URL provided in parameter.
Note: Will do the same thing as "replace()" as server-dom does not support loading the URL.
reload(): void
Reloads the resource from the current URL.
Note: Will do nothing as reloading is not supported in server-dom.
replace(url: string): void
Replaces the current resource with the one at the provided URL. The difference from the assign() method is that after using replace() the current page will not be saved in session History, meaning the user won't be able to use the back button to navigate to it.