contao/test — Issue #2324: Frontend::AddToUrl should call hook like Controller::generateFrontendUrl
Author: importer
Created: 2011-11-29 09:28:34+00:00
State: open
Labels: Feature, frontend, Invalid

Hi Leo,

Contao has a neat option to post-process urls via Controller::generateFrontendUrl() via the hook 'generateFrontendUrl'. This works great. But unfortunately generateFrontendUrl is not the only function rendering urls in Contao. When (re)building an url via Frontend::addToUrl() for example, this hook is not being called, resulting in generated URLS not being uniformly built throughout the application, causing incompatibilities an unexpected behaviour. To make the hook generateFrontendUrl really usable, it should be called whenever Contao renders an URL.

Keep it up!

Michiel Leideman

--- _Originally created by m.leideman on July 21st, 2010, at 11:33am (ID 2324)_