Direct link to routed url

The page model (not page method!) would look like this:

<?php

class ArticlePage extends Page {
  function url() {
    return url($this->uid());
  }
}
1 Like