Core/Endpoints

* don't use raw input to recreate subcategories for filter urls and
   external links
 * if a page does not expect categories it will now error out if it is
   called with parameters
 * fixed infite redirect loop that could occur if the pageName was an
   invalid string
 * added lost filter string for external page call to NPCs Page
This commit is contained in:
Sarjuuk 2026-01-01 01:15:08 +01:00
parent 23c5c71f4a
commit 715c1534eb
91 changed files with 288 additions and 261 deletions

View file

@ -17,9 +17,9 @@ class DataBaseResponse extends TextResponse
'callback' => ['filter' => FILTER_CALLBACK, 'options' => [self::class, 'checkCallback' ]]
);
public function __construct(string $pageParam)
public function __construct(string $rawParam)
{
parent::__construct($pageParam);
parent::__construct($rawParam);
if ($this->_get['locale']?->validate())
Lang::load($this->_get['locale']);