diff --git a/common/src/hosting/constants.ts b/common/src/hosting/constants.ts index 05b5a06b..004f48e3 100644 --- a/common/src/hosting/constants.ts +++ b/common/src/hosting/constants.ts @@ -24,6 +24,6 @@ if (IS_LOCAL && !process.env.ENVIRONMENT && !process.env.NEXT_PUBLIC_FIREBASE_EN export const SENTRY_DSN = 'https://4e5d3b0aa566e8aaae97298398a1ad37@o4510975610060800.ingest.de.sentry.io/4510975611699280' -export const PNG_FAVICON = 'https://compassmeet.com/icons/icon-192x192.png' +export const PNG_FAVICON = 'https://www.compassmeet.com/icons/icon-192x192.png' // console.log('IS_LOCAL_ANDROID', IS_LOCAL_ANDROID) diff --git a/web/components/FavIcon.tsx b/web/components/FavIcon.tsx index 89329cd0..10e3f6bf 100644 --- a/web/components/FavIcon.tsx +++ b/web/components/FavIcon.tsx @@ -4,7 +4,7 @@ type FavIconProps = { const FavIconBlack = ({className}: FavIconProps) => ( Compass logo diff --git a/web/pages/_app.tsx b/web/pages/_app.tsx index 82ee9574..ab5f25be 100644 --- a/web/pages/_app.tsx +++ b/web/pages/_app.tsx @@ -154,7 +154,7 @@ function MyApp(props: AppProps) { const handleAppLink = (payload: any) => { debug('handleAppLink', payload) const {endpoint} = payload - if (endpoint) { + if (endpoint && endpoint !== window.location.pathname) { router.push(endpoint) } } diff --git a/web/pages/api/proxy-data.ts b/web/pages/api/proxy-data.ts index dd97b5fe..cdeb7721 100644 --- a/web/pages/api/proxy-data.ts +++ b/web/pages/api/proxy-data.ts @@ -1,6 +1,6 @@ export default async function handler(req: any, res: any) { const {path} = req.query // e.g. "v4FoTtuyX_XwjC3aS2_Y6/Martin.json" - const upstreamUrl = `https://compassmeet.com/_next/data/${path}` + const upstreamUrl = `https://www.compassmeet.com/_next/data/${path}` const upstream = await fetch(upstreamUrl) const body = await upstream.text()