Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8933473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:32:43+00:00 2026-06-15T09:32:43+00:00

I am using cakephp ajax pagination for my web application. In this application i

  • 0

I am using cakephp ajax pagination for my web application.

In this application i have implemented search filters also. When user filter the records, i submit the search form using GET method, in controller i get the filter variables and append them to the paginator helper like this.

$this->paginator->options(array(
    'url' => array_merge($this->passedArgs, array('?'=> $query_string)), 
    'update' => '#tlist', 
    'evalScripts' => true)
);

My problem is that in my pagination link my all & is get converted into & See below and look at the bold part.

<a href="/sites/tutor/users/ajaxtutor/page:2?gender%5B0%5D=1&gender%5B1%5D=2" id="link-1795722171" />;

And when i click on the link i do get query String as below:

[gender] => Array
        (
            [0] => 1
        )
[amp;gender] => Array
        (
            [1] => 2
        )

how to remove this extra amp; from the query string.

Can anybody help how to cope with this situation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:32:44+00:00Added an answer on June 15, 2026 at 9:32 am

    As guffa said the conversion is correct from & to &amp; as it is html standard.

    The problem was that cakephp picks pagination link’s href part which contains &amp; in place of & and put it into ajax url section. See below for example:

    • Pagination links:
    • <a href='somedomain.com?&amp;a=1&amp;b=2>1</a>
    • Generated ajax code:
    • $("#link-1478709635").bind("click", function (event) {
          $.ajax({
              url: "somedomain.com?&amp;a=1&amp;b=2"
          });
          return false;
      
    • And when we click on the link it will take &amp; in place of & with it.

    • As a solution i used Post method in place of GET method to post my data back with pagination links in paginator options like this:
      'data'=>http_build_query($this->request->data),

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using CakePHP 1.2.4 and I have two search filters in a search form
I am using CakePHP 1.26 and CDN JQuery in this URL: http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js In a
I am using ajax with jQuery in my cakePHP application. and my javascript function
I try to create an Ajax search with CakePHP using the JsHelper. The Ajax
I'm using cakePHP 1.3 and would like to use AJAX from my search view
Im using cakephp 2.0 and i have data submitted that i want to cleanup,
I'm using cakephp 2.1.3 and I have a table Ingredients and a table IngredientAliases
I am using CakePHP 2.1 and I am having this tag in my program..
I'm using CakePHP 2.1 I have following fields in database. id views max_views I
I'm just starting using cakePHP and I saw on that there was an AJAX

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.