I would like to be able open apps on my computer / phone in coda. Here’s an example URL. obsidian://new?file=newFile&content=hello. However it does not work in coda
Does anyone have a workaround or is this something that has to implemented internally by Coda?
Yea tried those and they didn’t work either In the end my workaround is to deploy a separate webservice to handle the redirect. So https;//myapp.vercel.com/redir?to=${url}.
I’m using next.js, here’s the content of my /app/redir/route.ts file.
import { NextRequest, NextResponse } from 'next/server'
export async function GET(request: NextRequest) {
try {
const to = request.nextUrl.searchParams.get('to')
if (!to) {
return new NextResponse('Missing to query', { status: 400 })
}
return NextResponse.redirect(to)
} catch (err) {
return new NextResponse(`${err}`, { status: 400 })
}
}