BookStack\PageRevision::getUrl PHP Method

getUrl() public method

Get the url for this revision.
public getUrl ( null | string $path = null ) : string
$path null | string
return string
    public function getUrl($path = null)
    {
        $url = $this->page->getUrl() . '/revisions/' . $this->id;
        if ($path) {
            return $url . '/' . trim($path, '/');
        }
        return $url;
    }