fix search start for weblibre search bang

This commit is contained in:
Fabian Freund
2026-05-24 10:30:50 +02:00
parent 0b0ef38636
commit 46a3b250c2
7 changed files with 65 additions and 2 deletions
@@ -632,6 +632,13 @@ mixin $SearchRoute on GoRouteData {
_$boolConverter,
) ??
false,
autoSubmitSearch:
_$convertMapValue(
'auto-submit-search',
state.uri.queryParameters,
_$boolConverter,
) ??
false,
tabId: state.uri.queryParameters['tab-id'],
);
@@ -643,6 +650,8 @@ mixin $SearchRoute on GoRouteData {
queryParams: {
if (_self.launchedFromIntent != false)
'launched-from-intent': _self.launchedFromIntent.toString(),
if (_self.autoSubmitSearch != false)
'auto-submit-search': _self.autoSubmitSearch.toString(),
if (_self.tabId != null) 'tab-id': _self.tabId,
},
);