Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/redux/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}]`
);
Expand Down
2 changes: 2 additions & 0 deletions src/util/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down