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.92k stars 2.04k forks source link

leading slash in short link name breaks stuff #230

Closed zeke closed 1 year ago

zeke commented 1 year ago

Hey @steven-tey, loving this app so far! Just ran into a little snag.

I just tried to create a new link to an out outpainting path on my domain, but something went wrong. Maybe I mistakenly entered it as /outpainting but I'm not actually sure.

Screenshot 2023-06-02 at 4 30 27 PM

I tried deleting it and starting over, but I'm unable to delete it.

Screenshot 2023-06-02 at 4 30 50 PM

steven-tey commented 1 year ago

Hey @zeke! Whoa that's weird – sorry about that! I just removed the broken link for you.

This bug should've been fixed via https://github.com/steven-tey/dub/commit/2126342fdcefe403cbb7cd6b6a426636526b5c08 and https://github.com/steven-tey/dub/pull/224 but I'm not sure why it's still happening – will look into it!

steven-tey commented 1 year ago

This should be fixed in https://github.com/steven-tey/dub/commit/792993ce3dbc7666b6c4e16a9e45e8903ff56c4b :)

zeke commented 1 year ago

Thanks @steven-tey ❤️