Retrieving the url anchor in a werkzeug request

前端 未结 3 2023
萌比男神i
萌比男神i 2020-12-10 14:50

I have a DAV protocol that stores out-of-band data in the url anchor, e.g. the ghi in DELETE /abc.def#ghi. The server is a Flask application.

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 15:26

    You can do this using flask.url_for with the _anchor keyword argument:

    url_for('abc.def', _anchor='ghi')
    

提交回复
热议问题