Skip to content

Commit 9a5bcf2

Browse files
author
Kenn Jacobsen
authored
Retain mculture when clicking results from global search (#7192)
1 parent 472cc71 commit 9a5bcf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Umbraco.Web.UI.Client/src/common/services/navigation.service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ function navigationService($routeParams, $location, $q, $injector, eventsService
259259
var updated = false;
260260

261261
retainedQueryStrings.forEach(r => {
262-
// if mculture is set to null in nextRouteParams, the value will be undefined and we will not retain any query string that has a value of "null"
263-
if (currRouteParams[r] && nextRouteParams[r] !== undefined && !nextRouteParams[r]) {
262+
// testing explicitly for undefined in nextRouteParams here, as it must be possible to "unset" e.g. mculture by specifying a null value
263+
if (currRouteParams[r] && nextRouteParams[r] === undefined) {
264264
toRetain[r] = currRouteParams[r];
265265
updated = true;
266266
}

0 commit comments

Comments
 (0)