Return the URL necessary to edit this page

  • We recommend checking that the page is editable before outputting the editUrl().
  • If user opens URL in their browser and is not logged in, they must login to account with edit permission.
  • This method can also be accessed by property at $page->editUrl (without parenthesis).


if($page->editable()) {
  echo "<a href='$page->editUrl'>Edit this page</a>";


// basic usage
$string = $page->editUrl();

// usage with all arguments
$string = $page->editUrl($options = []);


$options (optional)array or bool

Specify boolean true to force URL to include scheme and hostname, or use $options array:

  • http (bool): True to force scheme and hostname in URL (default=auto detect).

Return value


URL for editing this page

$page methods and properties

API reference based on ProcessWire core version 3.0.97