pipes-digital / pipes

Repository for Pipes
https://pipes.digital
GNU Affero General Public License v3.0
264 stars 21 forks source link

Improve 404 and other error pages #104

Open anewuser opened 2 years ago

anewuser commented 2 years ago

Example: https://www.pipes.digital/test

404

onli commented 2 years ago

Good idea! :)

Hey, just so that it is spoken out: If you wanted to implement some of those suggestion, please feel formally invited. Not saying I won't do it, but I wouldn't mind PRs on top of these good suggestions!

anewuser commented 2 years ago

You may want to set up different messages and/or redirect to different pages depending on the request. These should check whether the pipe exists before trying to process them:

You can first verify the length of the ID. If it's longer than X characters, don't even connect to the database to look it up.