I don’t think this will solve your problem, but take a look at url_encode()
.
$pagination['add_args'] = array('s'=>urlencode(get_query_var('s')));
Related Posts:
- Remove trailing slash
- Change the “page” slug in pagination
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- add_rewrite_rule: $matches var not replaced by captured value
- How to show the same content on multiple URLs?
- Custom permalinks with NextGEN Gallery
- Create built-in pages without creating actual pages
- How to change default page slug?
- Disable wordpress pagination URL rewrite for specific page
- Will references to ugly links automatically redirect to their pretty url permalink?
- How do I add a add_rewrite_rule without it redirecting?
- WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)
- Sub domain redirection to taxonomy
- URL rewrites and pagination
- Sorting archive pages with “pretty” URLs?
- How to change page URLs to “www.site.com/page” instead of “example.com/blog/page” but keep post URLs as “example.com/blog/post”?
- Redirecting all old links from previous EE site to new WP site in one go?
- add_rewrite_rule and pagination issue
- Server (WordPress) redirects files that are not supposed to (using htaccess)
- Rewrite WordPress Custom URL
- Custom rewrite rule
- How to remove WordPress category from URL and have a custom pagination parameter/rewrite?
- Home page with Polylang redirects to other page [closed]
- expecting 404 but redirecting to post with url subdirectory in post title
- Alias ‘wp-content’ directory to something shorter (framework?)
- Remove “/page/1” from the URL
- Is there a ‘rake routes’ for wordpress?
- Remove Query String from URL on Redirect – Redirection Plugin
- WordPress Page Id
- add_rewrite_rule fro html to another url not working
- Double domain name in category URL-s
- WordPress redirects non-existing url to existing ones – how to disable
- Disable Pagination on Pages
- Rewrite Preview URL to include index.php
- How to disable URL rewriting for specific URLs?
- Can I change default registration link (without htaccess)?
- How do I display only the parent page in the url
- How to remove wordpress directory slash
- Changed pagination URLS to use p= instead of paged=
- Wildcard forward all posts and pages with few exceptions
- Redirect HTTP to HTTPS for all sub domains (blog posts)
- Custom rewrite causes 404 on pagination
- How to redirect large amount of URLs?
- Redirecting /px/?q=x to /px/x/
- 301 (static page instead latest posts)
- URL redirect on updating the post date
- Passing the JQuery string to Worldpress URL
- How to redirect a link to a new link?
- Rewrite vs Redirect from ?p={ID}
- 301 Redirect all posts urls from .html to / (without .html)
- Adding a rewrite rule to page that has no fixed variables and pagination
- Is WordPress API visible from PHP file called in htaccess
- Re-directing URLs with dates to URLs without dates
- Redirect htaccess [closed]
- How to redirect Webp files?
- Not able to rewrite the pagination URL for the posts
- 301 Rewriting htaccess
- Add pagination to a template loaded by query variable
- 404 redirect based on url
- Why is a rewrite rule in wordpress prevent pagination?
- How to force load a page in plugin?
- How are rewrite rules applied in WordPress?
- WordPress 3.1.2 Network Enabled non-www to www
- Redirect to new domain that serves new and different content
- Redirect users with “.” (dot) in their username and replace with “-” (dash) to correct profile
- WordPress pagination broken for page 2,3 with custom permalink. Redirects to baseurl
- Redirect empty search to another page
- Remove part from dynamic url and redirect
- Custom Post Type canonical link / pagination redirecting to root
- Fresh install redirects to www, breaking page loads
- Broken page redirect
- Make URL like /fr/something display same as /something
- Paginations in Category Page Leads to Sample Pages
- taxonomy term in URL slug won’t forward to the correct term for custom post like it does for default categories/normal posts
- Error 404 wordpress redirecting URL
- How to create short urls for sharing and downloadable content?
- Redirect A URL Pattern In WordPress Using .htaccess
- URLs ending with number higher than 2147483647 redirects to to domain.com/2147483647
- Migration from old CMS to WordPress 301 redirection rules?
- Pagination posts. Url format
- Changes done to .htaccess are not getting reverted back
- WordPress total posts per page changed and now 404 Http error comes out [closed]
- How to redirect a virtual page (e.g. /blog) to the home page?
- How to change search url produced by ‘s GET method?
- Wrong rewrite rules
- Using .htaccess to redirect /da/ to / in URL
- WordPress is adding pagination for all pages like www.example.com/page/123. How to remove that?
- Rewrite rules goes away
- Rewrite rules automatically for pages using specific template
- Multiple URL’s based on category for one post
- RSS feed rewrite matching wrong rule
- How to get page_id for url rewrite or how to use page slug for calling a page?
- rewriterule not working
- rewrite rules and capturing
- Help adding custom url, rewrite_rules_array
- Rewrite Url to a SEO-friendly format
- Change the search URL
- Add rewrite endpoint and .htaccess
- Remove url parameter using wordpress
- add_rewrite_rule not working with custom variables