contao / core-bundle

[READ-ONLY] Contao Core Bundle
GNU Lesser General Public License v3.0
123 stars 58 forks source link

Some routes do not work #142

Closed ghost closed 9 years ago

ghost commented 9 years ago

Issue by @leofeyer Friday Mar 06, 2015 at 20:48 GMT

The following routes no longer work:

@aschempp I guess that's why we had a contao_root route in the previous version of the front end loader?

ghost commented 9 years ago

Comment by @aschempp Monday Mar 09, 2015 at 13:02 GMT

I noticed this too. However, it's not a bug in Contao 4, I found the same in Contao 3 if you have no 404-page redirecting to the language root… All routes (including the ones you mentioned) are forwarded to our Controller, but the "legacy" code does not handle them.

ghost commented 9 years ago

Comment by @leofeyer Monday Mar 09, 2015 at 13:16 GMT

I just tested it:

In contrast:

This might of course be due to an incomplete URL rewrite configuration. But couldn't we add routes to handle these cases?

ghost commented 9 years ago

Comment by @aschempp Monday Mar 09, 2015 at 13:28 GMT

Also see https://github.com/contao/core/issues/7666

I never got a ResourceNotFound, I did get a die_nicely with page-not-found.

ghost commented 9 years ago

Comment by @leofeyer Monday Mar 09, 2015 at 19:52 GMT

Do you have "add language to URL" enabled?

ghost commented 9 years ago

Comment by @aschempp Monday Mar 09, 2015 at 20:13 GMT

I tried both. It worked just fine without, and I had the same issues with prepend_locale: true

ghost commented 9 years ago

Comment by @leofeyer Tuesday Mar 10, 2015 at 19:40 GMT

That's why we had a contao_root route in the first version of the loader. But I'll check whether I can work around the two issues using the rewrite module of the web server.

ghost commented 9 years ago

Comment by @aschempp Tuesday Mar 10, 2015 at 19:43 GMT

I don’t think so. The Symfony router does match the route, but Contao does not correctly handle it (at least in my case).

leofeyer commented 9 years ago

See #71 and #76.