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 f77e1b3 commit 49cd736Copy full SHA for 49cd736
material.angular.io/material.angular.io/src/app/shared/version-picker/version-picker.ts
@@ -37,7 +37,11 @@ export class VersionPicker {
37
*/
38
onVersionChanged(version: VersionInfo) {
39
if (!version.url.startsWith(window.location.href)) {
40
- window.location.assign(window.location.pathname ? (version.url + window.location.pathname + window.location.hash) : version.url );
+ window.location.assign(
41
+ window.location.pathname ?
42
+ (version.url + window.location.pathname + window.location.hash)
43
+ : version.url
44
+ );
45
}
46
47
0 commit comments