bpml_filter with question mark is added to all ajax request
-
?lang=[code]&bpml_filter=true is added to all ajax urls except for heartbeat.
The problem is that it adds question mark with these parameters if AJAX URL also have some parameters then parameters get disturbed.For Example in Compose message, when i type friends name then nothing returns, then I check console and parameters were passing like this:
/wp-admin/admin-ajax.php?lang=en&bpml_filter=true?q=aaq&limit=10&action=messages_autocomplete_results&search_term=aaq
Here, Question mark is repeating twice causing
true?q=aaq
as a valuebpml_filter
parameter instead of sendingq
as a separate parameter.I checked, you are using
bp_core_ajax_url
filter to achieve this. I think you should use some different approach.WP 4.7; BP 2.7.3; WPML 3.6.2; BPML 1.5.5.1
- The topic ‘bpml_filter with question mark is added to all ajax request’ is closed to new replies.