dub icon indicating copy to clipboard operation
dub copied to clipboard

Cannot delete a link with an asterisk in the path

Open wdhdev opened this issue 1 year ago • 5 comments

If you create a short link with * in the slug, when attempting to delete it, the input validation says it is not valid:

image

It seems to be an issue with the pattern HTML attribute on the input field.

Browser: Firefox 131.0

wdhdev avatar Oct 05 '24 05:10 wdhdev

I tested it. If you create a short link with * in the slug, for example, hrsn.link/* you'll have to type hrsn.link to validate the input.

sudipfyi avatar Oct 07 '24 10:10 sudipfyi

Yep, that works, however it is still technically a validation issue that probably should be fixed. Either by disallowing the * character when creating links, or by just somehow fixing the frontend validation for deleting a link with the * character in it.

wdhdev avatar Oct 07 '24 10:10 wdhdev

I guess both are needed as there can be existing links with * and user should not be able to create links like this

sudipfyi avatar Oct 07 '24 10:10 sudipfyi

Can i work on this @steven-tey ?

ShashankGupta10 avatar Oct 17 '24 09:10 ShashankGupta10