Is there a flask function that returns request url without the variables ?
@app.route('/index/<int:id1>/<int:id2>')
@app.route('/index1/<int:id1>/<int:id2>')
For a request /index/2/1
I expect /index in result
For a request /index1/2/1
I expect /index1 in result
I asked a function like described here https://stackoverflow.com/a/15975041/4772933
thanks