frontend: redirect to URLs with trailing slashes
Superseeds PR#1516
By defining an error handler for all exceptions
@app.errorhandler(Exception)
instead of registering it for all specific exceptions, we
unintentionally overrode a default handler for `RequestRedirect`.