Support custom URL schemes in OpenURL / Url data types

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
image

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 :frowning_face:

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 :frowning: 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

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.