Skip Navigation

Views AJAX Pagination URL parameters are added to CRED User Edit Links, in a User View Loop

Resolved

Reported for: Toolset Views 2.5.2

Resolved in: 3.1.0

Symptoms

When you add a CRED Edit User Link to a View that lists users and that View also uses AJAX Pagination, the pagination URL parameters from the View are added to the CRED User Edit Links present in the Loop.

The parameter added to the native CRED User Edit Link URL is:

  • ?post_type=view&p=1

Before triggering AJAX pagination, CRED Edit User Links are:

  • ?content-template-id=24&user_id=2

After triggering AJAX pagination, CRED Edit User Links are:

  • ?post_type=view&p=23&content-template-id=24&user_id=2

All of this means that this will break the CRED Edit User Link and lead to a 404 page.

Workaround

This issue will be addressed in a future CRED or Views release.

At this moment, there are two possible workarounds:

1. Use the manual pagination instead.

2. Instead of the shortcode that CRED generates with the “CRED Forms” interface, create the link manually:

Link Created Manually - Workaround
<a href="https://toolset.com//current-page-with-view/?content-template-id=6427&user_id=">Edit This user: 
</a>

Note that in this example, you need to adjust the URL’s href parameter and the ID value for the “content-template-id” (i.e. “6427”).

Comments are closed