diff --git a/src/redux/init.ts b/src/redux/init.ts index 285fae5..dca7111 100644 --- a/src/redux/init.ts +++ b/src/redux/init.ts @@ -60,8 +60,12 @@ export const initActiveTab = (store: RootStore) => { export const openSearchedApp = (store: RootStore) => { const searchParams = new URLSearchParams(window.location.search); const appSearched = searchParams.get(QUERY_STRINGS.APP) ?? ''; - const extraSearchParams = searchParams.get(QUERY_STRINGS.SEARCH_PARAMS) ?? undefined; - const extraHashParams = searchParams.get(QUERY_STRINGS.HASH_PARAMS) ?? undefined; + const extraSearchParams = + searchParams.get(QUERY_STRINGS.SEARCH_PARAMS) ?? + searchParams.get(QUERY_STRINGS.SEARCH_PARAMS_SHORT) ?? + undefined; + const extraHashParams = + searchParams.get(QUERY_STRINGS.HASH_PARAMS) ?? searchParams.get(QUERY_STRINGS.HASH_PARAMS_SHORT) ?? undefined; logger.info( `openSearchedApp(), searchParams app=${appSearched}, extraSearchParams are [${extraSearchParams}], extraHashParams are [${extraHashParams}]` ); diff --git a/src/util/constants.ts b/src/util/constants.ts index 66271cb..b9f837d 100644 --- a/src/util/constants.ts +++ b/src/util/constants.ts @@ -36,7 +36,9 @@ export const FRAME_ID_PREFIX = 'rmg-home:frame-'; export const QUERY_STRINGS = { APP: 'app', SEARCH_PARAMS: 'searchParams', + SEARCH_PARAMS_SHORT: 's', HASH_PARAMS: 'hashParams', + HASH_PARAMS_SHORT: 'h', }; export enum API_ENDPOINT {