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 ), ‘?’)))),’/’);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Trailing slash causing problem with GET variables’ is closed to new replies.