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

Commit 3074993

Browse files
author
Andrew Garrett
committed
Do not unnecessarily rewrite the URL
1 parent 68ec5f0 commit 3074993

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

accessibility-switch.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ $( function() {
9393
newUrl;
9494

9595
selectSimulation( type );
96-
newQueryParameters.simulation = type;
96+
97+
if ( type ) {
98+
newQueryParameters.simulation = type;
99+
} else {
100+
delete newQueryParameters.simulation;
101+
}
97102

98103
newUrl = '?' + $.param( newQueryParameters );
99104

0 commit comments

Comments
 (0)