Flask route using path with leading slash
问题 I am trying to get Flask using a simple route with a path converter: @api.route('/records/<hostname>/<metric>/<path:context>') It works unless the "path" part of the URL uses a leading slash. In this case I get a 404. I understand the error but what I don't get is that there is no workaround in the documentation or anywhere on the Internet about how to fix this. I feel like I am the first one trying to do this basic thing. Is there a way to get this working with meaningful URL? For example