Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 1a23025

Browse files
fix: window.location.href changed to its origin (#1234)
Co-authored-by: Amy Sorto <[email protected]>
1 parent 7394355 commit 1a23025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/shared/version-picker/version-picker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class VersionPicker {
3636
* @param version data for use in navigating to the version's path
3737
*/
3838
onVersionChanged(version: VersionInfo) {
39-
if (!version.url.startsWith(window.location.href)) {
39+
if (!version.url.startsWith(window.location.origin)) {
4040
window.location.assign(
4141
window.location.pathname ?
4242
(version.url + window.location.pathname + window.location.hash)

0 commit comments

Comments
 (0)