contao / core-bundle

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

News frontEndUrl with auto_item and url_suffix: '/' #1651

Closed m-knorr closed 6 years ago

m-knorr commented 6 years ago

Contao 4.5.10

I have the following Sitestructure:

FolderURLs and auto_item are activated and the following URL setting in the config.yml:

# Contao configuration
contao:
  url_suffix: '/'

The Following problems occur:

  1. The alias for the detail pages get not created with folder like structure f.e. detail_id and not blog/category/detail
  2. The frontend url to the details is always www.example.com/newsentryalias/ but it should be www.example.com/blog/category/detail/newsentry or am i wrong? When I deactivate the auto_item it works, but it also adds the /item/ to the url.
fritzmg commented 6 years ago

I am not sure an / URL suffix is actually supported.

bytehead commented 6 years ago

Try with '' as a suffix.

m-knorr commented 6 years ago

In versions < 4.5 it always worked for me, and the other pages work as expected with this URL suffix.

But I'll try the version with ''!

m-knorr commented 6 years ago

Changed it to '', works the same way as with '/'.

m-knorr commented 6 years ago

Even with no changes in the config.yml the behaviour is the same for the detail alias 🤔

m-knorr commented 6 years ago

Ok, I tracked it down to fritzmg/contao-simple-news-urls @fritzmg

The Extension seems not to "respect" the folder-urls and strips away the whole alias!

fritzmg commented 6 years ago

The Extension seems not to "respect" the folder-urls

That's the purpose of the extension ;)

and strips away the whole alias!

That should not happen though. Please open a ticket in the extension.

asaage commented 6 years ago

Anyway i still think there is some kind of issue with folder-urls in combination with url_suffix: '/' / url_suffix: '' and auto_item https://github.com/contao/core-bundle/issues/1624