jmbmxer jmbmxer - 1 year ago 613
Python Question

Flask Redirect New Tab

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

def my_page():

return redirect('', 301)

I would like if the mylink website opened in a new tab, any insights?

Answer Source

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: <a href="" target="_blank">Link</a>

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download