[][src]Function wikidot_path::prelude::redirect

pub fn redirect<S: Into<String>>(path: S) -> Option<String>

Determines if a request with the given path should be redirected or not.

This is to allow consumers in a web router to redirect requests which are not in Wikidot normal form.

This also redirects pages in the default category: _default:page will be redirected to simply page.