Go to page content

resource_page_path

Handle the page path of a rsc.

Takes the '*' variable and tries to find a page with a matching page path setting. When found redirects to the page, when not found returns a 404 error. The redirect is done with a “302 Found” HTTP status.

A dispatch rule with this resource is at the end of the mod_base's dispatch rules. Which means that any dispatch rule from a module with lower priority than mod_base will not be matched.

Example dispatch rule (from mod_base):

{page_path, ['*'], resource_page_path, []}

This resource does not have any dispatch options and does not handle any query arguments,

This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.