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