<?php
 class url_error_document { function routes() { return [ [ 'pattern' => '#^error_document$#', 'page' => 'error_document', 'params' => '', 'options' => [ 'redirect' => false, ], ], ]; } function rewrite(ent_link $link, $language_code) { $link->path = ''; return $link; } } 