Hey scribu, thanks for the work you’re putting in that fine plugin. Today I found a small way for improvement, which I’ll let you know:
If you’re on the second+ page of a category listing the link to the first page contains a trailing slash, like so:
regardless of the defined value in the permalink structure (trailing slash for URLs or not). To change that behaviour change line /wp-pagenavi/core.php line 226 (inside function get_url() ):
return ( 'multipart' == $this->type ) ? get_multipage_link( $page ) : get_pagenum_link( $page );
return ( 'multipart' == $this->type ) ? get_multipage_link( $page ) : user_trailingslashit( get_pagenum_link( $page ), 'single_paged' );
Maybe you can consider the change to make it into the next version of the plugin, if it makes sense to you.
Keep up your good work,
- The topic ‘[Plugin: WP-PageNavi] Trailing slash at first page URL (regardless of defined permalink structure)’ is closed to new replies.