DumbPad icon indicating copy to clipboard operation
DumbPad copied to clipboard

Simplify URL path to note title (avoid query string)

Open tphillips-mu opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. I prefer meaningful URL paths over Query Parameters, and think avoiding query strings gives a simpler (dumber?) and cleaner URL.

Describe the solution you'd like Instead of using an ?id=<name> URL format, simplify to just have the note name as part of the path.

ie; http://localhost:3000/?id=Dumb+Test would become just http://localhost:3000/Dumb+Test

Obviously this would need to exclude name clashes for app functional paths like /Assets/, /api/, /managers/, etc... but I think for your average note title, it would not clash, and would give cleaner shareable URLs.

Describe alternatives you've considered Alternatively for clearer delineation you could include a prefix path, such as: http://localhost:3000/note/Dumb+Test or http://localhost:3000/id/Dumb+Test

Extending this, let me make up a URL to a new file that doesn't exist, and instead of throwing an error, offer to create the note.

ie; if I edit my browser URL to go to http://localhost:3000/Some New Note Name which doesn't exist, offer to create a note of that name.

Bonus idea: support paths in the name, translating to local folders in the data directory.

eg; http://localhost:3000/Family/Some New Note Name would create Some New Note Name.txt in folder Family.

tphillips-mu avatar Jul 22 '25 03:07 tphillips-mu

hey there! thanks for the feedback 🙏🏻 that's an interesting point and something we can take a look into!

gitmotion avatar Jul 22 '25 06:07 gitmotion