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

addToUrl hängt ein "_local=..." als GET-Parameter an #1257

Closed
zonky2 opened this issue Dec 20, 2017 · 3 comments

Comments

@zonky2
Copy link

commented Dec 20, 2017

Wird in einem Template eine URL-Generierung erzeugt

$ortUrl = '<a href="'  . \Frontend::addToUrl('orderBy=schulungsort_ort&orderDir=ASC') . '">Ort</a>';

wird ein _locale=de als GET-Parameter angehangen und nach erneutem Aufruf ist der Parameter "in der URL" als /_locale/de ... nach erneutem Aufruf kommt eine 404

siehe https://github.com/contao/core-bundle/blob/master/src/Resources/contao/classes/Frontend.php#L441

Workaround: ..._locale=& mit als Parameter in die addToUrl

C 4.4.8

@Toflar

This comment has been minimized.

Copy link
Member

commented Dec 20, 2017

/cc @aschempp

@leofeyer leofeyer added the defect label Dec 21, 2017

@leofeyer leofeyer added this to the 4.4.10 milestone Dec 21, 2017

@leofeyer leofeyer self-assigned this Dec 21, 2017

leofeyer added a commit that referenced this issue Dec 21, 2017
@leofeyer

This comment has been minimized.

Copy link
Member

commented Dec 21, 2017

Fixed in a21e52b.

@leofeyer leofeyer closed this Dec 21, 2017

@zonky2

This comment has been minimized.

Copy link
Author

commented Dec 21, 2017

THX!

@leofeyer leofeyer modified the milestones: 4.4.10, 4.4 May 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.