Site logo

Archived topic

pages/posts archive navigation adds a trailing slash to archive first page link

5 replies · Started by Tobias on September 24, 2018

Viewing posts 1–6 of 6

Hi,

we have a url structure without a trailing slash for our categories like:

http://www.myurl.com/cat1
http://www.myurl.com/cat2
http://www.myurl.com/cat3

Our archive navigation looks like this:

Prev, 1,2,3,4....20, Next

The Link to the first page [1] has a trailing slash attached, which is not correct. The url should be:
http://www.myurl.com/cat1
and not:
http://www.myurl.com/cat1/

The other links are correct like:
http://www.myurl.com/cat1/page/2
http://www.myurl.com/cat1/page/3
http://www.myurl.com/cat1/page/4
...

Thank you,
Tobias

Hi, okay thank you for your support.

Is there any way to diable the output of the archive navigation completely?

Thank you.

Thank you. Is there a way to disable the navigation completly not not only hide it via css?
I installed another navigation plugin.

Thank you.

Try this filter:

add_action( 'wp', function() {
    add_filter( 'generate_show_post_navigation', '__return_false' );
} );
This archived topic is closed to new replies.