Page redirects

Create a special page that redirects the user to a URL hosted on an external website.

The UNICEF Inventory theme includes a feature that allows you to redirect the user to another website. Sometimes, a page hosted in your site is moved to another website. While Hugo allows you to create aliases that redirects one page to another in the same site, it is not possible to redirect a page to an external site. These page redirects solve that problem.

To create a page redirect, define the layout type and redirectUrl in the page front-matter:

2title: UNICEF Office of Innovation
3description: The Office of Innovation uses technology to address the biggest challenges facing children today.
4type: redirect

When the user visits this page on the Hugo site, they are redirected to the website after a five-second pause.