Update Compass URLs to include "www" and improve deep link handling

This commit is contained in:
MartinBraquet
2026-04-02 13:10:28 +02:00
parent 223387129e
commit 0d758eb5b1
4 changed files with 4 additions and 4 deletions

View File

@@ -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)

View File

@@ -4,7 +4,7 @@ type FavIconProps = {
const FavIconBlack = ({className}: FavIconProps) => (
<img
src="https://compassmeet.com/favicon-black.svg"
src="https://www.compassmeet.com/favicon-black.svg"
alt="Compass logo"
className={`w-12 h-12 ${className ?? ''}`}
/>

View File

@@ -154,7 +154,7 @@ function MyApp(props: AppProps<PageProps>) {
const handleAppLink = (payload: any) => {
debug('handleAppLink', payload)
const {endpoint} = payload
if (endpoint) {
if (endpoint && endpoint !== window.location.pathname) {
router.push(endpoint)
}
}

View File

@@ -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()