Skip to main content

Redirect

Use the redirect(url, params) function redirect a user to another URL either external or internal.

Basic example

from abstra.forms import redirect

def open_abstra_cloud():
redirect("https://abstra.io")

Using query params

You can also pass query params to the redirect function:

from abstra.forms import redirect

def open_user_page(user_id):
redirect("https://home.abstra.app/user", {"user_id": 123})
# Redirects to https://home.abstra.app/user?user=123