Function wikidot_path::redirect [−][src]
pub fn redirect<S: AsRef<str>>(path: S) -> Option<String>
Expand description
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
.
It also decodes any percent codes within the string.