mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-02 22:15:23 -04:00
Update Compass URLs to include "www" and improve deep link handling
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 ?? ''}`}
|
||||
/>
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user