Flask Redirect New Tab

后端 未结 3 1148
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-05 15:03

Does anyone know if flask redirect is able to open a link / URL in a new tab?

@app.route(\'/test\')
def my_page():

  return redirect(\'http://mylink.com\',          


        
3条回答
  •  既然无缘
    2021-01-05 15:54

    As far as I know that would not be a flask issue. You have to open a new tab within your html code or with Javascript.

    example: Link

    The server has no power over what the browser does in this case.

提交回复
热议问题