Gii Diff Ajax Dialog Broken With Multilanguage Urls

I use mishamx / yii-multilanguage extension and it overrides


createUrl()

method and adds a language param in process.

Generator view uses link() method to generate an url for opening up diff dialog.

When


/<language>/gii/form/diff/id/0

(e.g.


/en/gii/form/diff/id/0

) is requested, it fails, by giving a full html in response and shows whole form generator page, when file diff view was expected.

I can’t find the place, where Gii controllers decide, what to show depending on request URI, because it seems that there is some hard-coded stuff, that can’t handle another uri component in prefix, even if it is defined in url rules correctly.

Bump