Skip to main content

Meta / Redirect

Redirect the page to a new URL or hash.

import time

from h2o_wave import site, ui

page = site['/demo']

page['meta'] = ui.meta_card(box='')

page['example'] = ui.markdown_card(
box='1 1 2 2',
title='Redirect a page',
content='This page should redirect to Wikipedia in a few seconds. Wait for it...',

# Redirect to a hash.
page['meta'].redirect = '#widgets'

# Redirect to a URL.
page['meta'].redirect = ''

Tags:  metaredirect