dubinc / dub

Open-source link management infrastructure. Loved by modern marketing teams like Vercel, Raycast, and Perplexity.
https://dub.co
GNU Affero General Public License v3.0
18.91k stars 2.04k forks source link

Show the actual subpath link instead of the subdomain #874

Open steven-tey opened 6 months ago

steven-tey commented 6 months ago

When using Dub with a subpath, Dub should show the actual subpath link (e.g. domain.com/r/:path) instead of the proxy domain (r.domain.com/:path)

linear[bot] commented 6 months ago

ENG-311 Show the actual subpath link instead of the subdomain

Pratham271 commented 6 months ago

@steven-tey can I work on this one?

steven-tey commented 6 months ago

@Pratham271 sure – what do you have in mind?

Pratham271 commented 6 months ago

@steven-tey

so we want to display the domain.com/r/:path directly instead if showing the r.domain.com/:path and then redirecting it to domain.com/r/:path?

Pratham271 commented 5 months ago

Hey @steven-tey I wanted to know if this is still open cause I was testing it out in local dev and when creating a workspace it is giving me the error API error occurred {} [0] POST /api/workspaces 500 in 197ms and when I started searching I couldn't find a post request to api/workspace there is only a get request

paanjoe commented 5 months ago

Hey @steven-tey I wanted to know if this is still open cause I was testing it out in local dev and when creating a workspace it is giving me the error

``API error occurred {}

[0] POST /api/workspaces 500 in 197ms``

and when I started searching I couldn't find a post request to api/workspace there is only a get request

https://github.com/dubinc/dub/blob/main/apps/web/app/api/workspaces/route.ts

I think the POST request resides here?