We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06a2e25 commit ee5be5bCopy full SHA for ee5be5b
1 file changed
packages/@ember/routing/lib/location-utils.ts
@@ -38,16 +38,12 @@ export function getFullPath(location: Location): string {
38
return getPath(location) + getQuery(location) + getHash(location);
39
}
40
41
-export function getOrigin(location: Location): string {
42
- return location.origin;
43
-}
44
-
45
/**
46
Replaces the current location, making sure we explicitly include the origin
47
to prevent redirecting to a different origin.
48
49
@private
50
*/
51
export function replacePath(location: Location, path: string): void {
52
- location.replace(getOrigin(location) + path);
+ location.replace(location.origin + path);
53
0 commit comments