PagePathHistory::addPathHistory() method

Add a history path for a page


// basic usage
$bool = $pagePathHistory->addPathHistory(Page $page, string $path);

// usage with all arguments
$bool = $pagePathHistory->addPathHistory(Page $page, string $path, $language = null);


language (optional)null, Language

Return value


True if path was added, or false if it likely overlaps with an existing path

PagePathHistory methods and properties

API reference based on ProcessWire core version 3.0.234

Latest news

  • ProcessWire Weekly #511
    In the 511th issue of ProcessWire Weekly we'll cover the latest core updates, introduce a new third party module called Auto AVIF, and more. Read on! / 25 February 2024
  • Using date range fields in ProcessWire
    This week we'll take a detailed look at the newest addition to the ProFields set of modules: the Date Range Fieldtype and Inputfield.
    Blog / 24 November 2023
  • Subscribe to weekly ProcessWire news

“The end client and designer love the ease at which they can update the website. Training beyond how to log in wasn’t even necessary since ProcessWire’s default interface is straightforward.” —Jonathan Lahijani