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

Stop overriding the pageTrigger for CP requests #12614

Merged
merged 3 commits into from Feb 3, 2023
Merged

Conversation

brandonkelly
Copy link
Member

Description

Moves away from overriding the pageTrigger config setting for CP requests.

CP requests continue to paginate using a p page trigger, but it’s now hard-coded into the pagination logic, so plugins can still access the original config value if needed.

craft\web\twig\variables\Paginate (what the pageInfo variable is set to for {% pagination %} tags) also now gets a public $pageTrigger property, which defaults to p or the pageTrigger value depending on if it’s a CP request, but it can be overridden if needed.

Related issues

@brandonkelly brandonkelly merged commit ddf5cf5 into v3 Feb 3, 2023
@brandonkelly brandonkelly deleted the bugfix/page-trigger branch February 3, 2023 14:37
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

Successfully merging this pull request may close these issues.

None yet

1 participant