Allow developers to rewtire the Ajax URL

Created on 19 November 2020, over 4 years ago
Updated 7 December 2023, over 1 year ago

Problem/Motivation

We use view_ajax_history module. When we click on "Load more" button then the new content will be loaded by Ajax and the URL should be changed.
In the URL we have a lot of parameters that
needed only for Ajax request.

?facets_query_custom=%252Fviews%252Fajax&cleanQueryString=1&ajax_page_state[theme]=lexis&ajax_page_state[libraries]=admin_toolbar%2Ftoolbar.tree%2Cadmin_toolbar_tools%2Ftoolbar.icon%2Cadminimal_admin_toolbar%2Fadminimal-admin-toolbar%2Cback_to_top%2Fback_to_top_icon%2Cback_to_top%2Fback_to_top_js%2Ccontextual%2Fdrupal.contextual-links%2Ccontextual%2Fdrupal.contextual-toolbar%2Ccore%2Fdrupal.active-link%2Ccore%2Fhtml5shiv%2Ccore%2Fpicturefill%2Cdevel%2Fdevel-toolbar%2Cflag%2Fflag.link%2Cflag%2Fflag.link_ajax%2Cgoogle_analytics%2Fgoogle_analytics%2Clexis%2Fglobal-styling%2Clexis%2Flast-updated%2Clexis%2Fmain%2Clexis%2Fnews-navigation%2Cln_ckeditor%2Findentblock%2Cshortcut%2Fdrupal.shortcut%2Csystem%2Fbase%2Ctoolbar%2Ftoolbar%2Ctoolbar%2Ftoolbar.escapeAdmin%2Cuser%2Fdrupal.user.icons%2Cviews%2Fviews.module%2Cviews_ajax_history%2Fhistory%2Cviews_infinite_scroll%2Fviews-infinite-scroll&_wrapper_format=drupal_ajax&page=6

To save the current state we need only the "page" get parameter. So the URL can be like
?page=6

It's much clear to users. They shouldn't see all the ajax parameters.

✨ Feature request
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine MykolaVeryha

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024