diff --git a/src/components/Apps/AppViewer.tsx b/src/components/Apps/AppViewer.tsx index cd9cf94..a582ce1 100644 --- a/src/components/Apps/AppViewer.tsx +++ b/src/components/Apps/AppViewer.tsx @@ -25,8 +25,13 @@ export const AppViewer = React.forwardRef(({ app , hide, isDevMode, skipAuth}, i setUrl(app?.url) return } + + let hasQueryParam = false + if(app?.path && app.path.includes('?')){ + hasQueryParam = true + } - setUrl(`${getBaseApiReact()}/render/${app?.service}/${app?.name}${app?.path != null ? `/${app?.path}` : ''}?theme=dark&identifier=${(app?.identifier != null && app?.identifier != 'null') ? app?.identifier : ''}`) + setUrl(`${getBaseApiReact()}/render/${app?.service}/${app?.name}${app?.path != null ? `/${app?.path}` : ''}${hasQueryParam ? "&": "?" }theme=dark&identifier=${(app?.identifier != null && app?.identifier != 'null') ? app?.identifier : ''}`) }, [app?.service, app?.name, app?.identifier, app?.path, app?.isPreview]) useEffect(()=> { diff --git a/src/components/Group/WalletsAppWrapper.tsx b/src/components/Group/WalletsAppWrapper.tsx index 00218a7..4be2e41 100644 --- a/src/components/Group/WalletsAppWrapper.tsx +++ b/src/components/Group/WalletsAppWrapper.tsx @@ -29,7 +29,7 @@ export const WalletsAppWrapper = () => { tabId: "5558589", name: "Q-Wallets", service: "APP", - path: '/qortal' + path: '/qortal?authOnMount=true' }); const isDisableBackButton = useMemo(() => { @@ -66,11 +66,8 @@ export const WalletsAppWrapper = () => {