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 49cd736 commit 7e2bbedCopy full SHA for 7e2bbed
material.angular.io/material.angular.io/src/app/shared/version-picker/version-picker.ts
@@ -36,7 +36,7 @@ export class VersionPicker {
36
* @param version data for use in navigating to the version's path
37
*/
38
onVersionChanged(version: VersionInfo) {
39
- if (!version.url.startsWith(window.location.href)) {
+ if (!version.url.startsWith(window.location.origin)) {
40
window.location.assign(
41
window.location.pathname ?
42
(version.url + window.location.pathname + window.location.hash)
0 commit comments