Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add possibility to ignore the language fragment for news urls #3

Open
fritzmg opened this issue Sep 21, 2015 · 2 comments
Open

add possibility to ignore the language fragment for news urls #3

fritzmg opened this issue Sep 21, 2015 · 2 comments

Comments

@fritzmg
Copy link
Owner

fritzmg commented Sep 21, 2015

Currently the language fragment is added to simple news URLs when it is enabled in the system settings. However, since news aliases are unique across all news archives this is not really necessary - thus the "simple news urls" could be made even simpler for this case.

This feature will be added in a major release version, but backwards compatibility with the old behavior could be obtained by adding a system setting like "Add language to simple news URLs".

@fritzmg fritzmg modified the milestone: 2.0.0 Sep 21, 2015
@fritzmg
Copy link
Owner Author

fritzmg commented Sep 21, 2015

While it is possible to omit the language parameter from the simple news URL, Contao will always create a redirect to an URL with the language parameter, if the setting is enabled. This is done before any call to the getPageIdFromUrl hook and thus cannot be circumvented this way.

@fritzmg
Copy link
Owner Author

fritzmg commented Sep 22, 2015

Note: when using the [i18nl10n] Extension, this feature can probably not be enabled (see also #4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant