Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Notifications
  • Reference
  • Backend developer
  • Routing and redirects
  • Notification
  • Dispatch rule
  • URL

observe_page_url/2

Fetch the url of a resource’s html representation

Type:

first

Return:

{ok, Url} or undefined

#page_url{} properties:

  • id: m_rsc:resource_id()
  • is_a: list

Edit on GitHub

Related documentation

Notifications

observe_url_rewrite/3

Rewrite a URL after it has been generated using the z_dispatcher

Notifications

observe_url_abs/2

Make a generated URL absolute, optionally called after url_rewrite by z_dispatcher

Dispatch rules

mod_site_update dispatch rules (admin_dispatch)

URL dispatch rules defined by mod_site_update in apps/zotonic_mod_site_update/priv/dispatch/admin_dispatch.

Dispatch rules

mod_payment dispatch rules (dispatch)

This file defines the URL dispatch rules for mod_payment . Rules are matched from top to bottom; the first matching rule handles the…

Dispatch rules

mod_wikiconcept dispatch rules (dispatch)

This file defines the URL dispatch rules for mod_wikiconcept . Rules are matched from top to bottom; the first matching rule handles the…

Dispatch rules

mod_secure_message dispatch rules (dispatch)

This file defines the URL dispatch rules for mod_secure_message . Rules are matched from top to bottom; the first matching rule handles the…

Dispatch rules

mod_paysub dispatch rules (dispatch)

This file defines the URL dispatch rules for mod_paysub . Rules are matched from top to bottom; the first matching rule handles the request.

Dispatch rules

mod_mailgun dispatch rules (dispatch-mailgun)

This file defines the URL dispatch rules for mod_mailgun . Rules are matched from top to bottom; the first matching rule handles the…

Dispatch rules

mod_import_feed dispatch rules

URL dispatch rules defined by mod_import_feed in apps/zotonic_mod_import_feed/priv/dispatch/dispatch.

GitHub © 2026 Zotonic