Skip to content

Error 404 due to removal of protocol slash #60

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

Closed
MacSteini opened this issue Jan 28, 2024 · 0 comments
Closed

Error 404 due to removal of protocol slash #60

MacSteini opened this issue Jan 28, 2024 · 0 comments

Comments

@MacSteini
Copy link

In pagination.html.twig it reads:

{% set url =  (base_url ~ pagination.params ~ pagination.prevUrl)|replace({'//':'/'}) %}
…
{% set url = (base_url ~ pagination.params ~ paginate.url)|replace({'//':'/'}) %}
…
{% set url = (base_url ~ pagination.params ~ pagination.nextUrl)|replace({'//':'/'}) %}

These lines cause 404 errors because they also remove a protocol slash (“https:/” instead of “https://”). If changed to the following it works like a charm:

{% set url =  (base_url ~ pagination.params ~ pagination.prevUrl|replace({'//':'/'})) %}
…
{% set url = (base_url ~ pagination.params ~ paginate.url|replace({'//':'/'})) %}
…
{% set url = (base_url ~ pagination.params ~ pagination.nextUrl|replace({'//':'/'}))

Cannot tell if these changes trigger side effects, have not observed so far.

rhukster added a commit that referenced this issue Feb 5, 2024
This reverts commit 1d4d4ab.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant