Title: Trailing slash causing problem with GET variables
Last modified: August 21, 2016

---

# Trailing slash causing problem with GET variables

 *  [joelnewcomer](https://wordpress.org/support/users/joelnewcomer/)
 * (@joelnewcomer)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/trailing-slash-causing-problem-with-get-variables/)
 * I had a problem and I found a solution that I wanted to share in case anyone 
   else experienced the same problem. I have paginated pages that need to access
   a GET variable and Simple Pagination was adding a trailing slash which was messing
   up the GET variable. For anyone else who might run into this, go into simple-
   pagination.php and change line 781 to this:
 * $this->base = trailingslashit( remove_query_arg( ‘s’, strtok(get_pagenum_link(
   1 ), ‘?’) ) ) . $wp_rewrite->pagination_base . ‘/%#%/’.rtrim(str_replace(‘%2F’,”,
   substr(get_pagenum_link( 1 ),strlen(strtok(get_pagenum_link( 1 ), ‘?’)))),’/’);
 * [https://wordpress.org/plugins/simple-pagination/](https://wordpress.org/plugins/simple-pagination/)

Viewing 1 replies (of 1 total)

 *  [elsnare](https://wordpress.org/support/users/elsnare/)
 * (@elsnare)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/trailing-slash-causing-problem-with-get-variables/#post-5035555)
 * It was just the right solution for a problem I was beating my head on for few
   days! Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Trailing slash causing problem with GET variables’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-pagination.svg)
 * [Simple Pagination](https://wordpress.org/plugins/simple-pagination/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-pagination/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-pagination/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-pagination/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-pagination/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-pagination/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [elsnare](https://wordpress.org/support/users/elsnare/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/trailing-slash-causing-problem-with-get-variables/#post-5035555)
 * Status: not resolved