contao/core — Issue #4043: /kk.html → No root page found, but sould redirect to 404?
Author: psi-4ward
Created: 2012-03-04 20:45:18+00:00
State: open

Contao treats a exactly 2-char page as language if addLanguageToUrl=true, even it has the .html suffix.
Sould this not display the PageError404?

=> http://demo.contao.org/kk.html

The Bug relays in Frontend::getPageIdFromUrl() which strips the suffic and than matches to /^[a-z]{2}$/

Perhaps match to Env->request? ```if (!preg_match('/^[a-z]{2}/$/', $this->Environment->request))```