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?
3 Likes
Sometimes you can use Hyperlink(thisRow.URL)
as a work-around. In your example even that doesn’t work though 
In my experience so far it doesn’t allow a “.” (dot) at the end of the URL, even though it’s part of the JS push state (after the #)
Could definitely get some extra love from 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 })
}
}
1 Like