//seoTemplate === 'content_page_path' and isset( $this->queryString['path'] ) ) { /* Try to find a page */ try { /* Create it */ $correctUrl = \IPS\cms\Pages\Router::loadFromUrl( $this )->url(); /* Set extra stuff in our query string */ $paramsToSet = array(); foreach ( $this->queryString as $k => $v ) { if ( !array_key_exists( $k, $correctUrl->queryString ) and !array_key_exists( $k, $correctUrl->hiddenQueryString ) ) { $paramsToSet[ $k ] = $v; } } if ( \count( $paramsToSet ) ) { $correctUrl = $correctUrl->setQueryString( $paramsToSet ); } /* Return */ return $correctUrl; } /* Couldn't find one? Don't accept responsibility */ catch ( \OutOfRangeException $e ){} } /* Return */ return $return; } }