Trailing Slash In Pagination Using wpdm_category Shortcode

Viewing 4 posts - 1 through 4 (of 4 total)
#181725

Jan Krug
Participant

Hi,

I might have found a bug in your plugin.

My customer has permalinks set to: “/%postname%

So the urls are:

  • example.com/about-us
  • example.com/services
  • example.com/contact

He is using the shortcode [wpdm_category] with the “item_per_page” atrribute.

The problem is that urls in the pagination are like this:

  • example.com/example-page/?cp=2
  • example.com/example-page/?cp=3
  • example.com/example-page/?cp=4

Because of the permalink structure without a “/” at the end all urls get redirected.

  • example.com/example-page/?cp=2 redirects to example.com/example-page?cp=2
  • example.com/example-page/?cp=3 redirects to example.com/example-page?cp=3
  • example.com/example-page/?cp=4 redirects to example.com/example-page?cp=4

I fixed it by making a change in this file:

/wp-content/plugins/download-manager/src/wpdm-functions.php
(function: wpdm_paginate_links)

$phtml = str_replace( "/?cp=", "?cp=", $phtml );

Obviously just a quick fix. ๐Ÿ™‚

I guess your plugin expects that every WordPress website uses / at the end โ€“ but this is not the case.

Is there a setting to remove the trailing shlash in the pagination?

Thanks,
Jan

#181738

Tanvir
Spectator

Hello Jan,

Thanks for contacting us.

Could you please share related urls of the issue to check it further? You can share any example pages. It will help us to understand the issue properly.

Regards
Tanvir

#182062

Jan Krug
Participant

Hi Tanvir,

there is no url to share, I already fixed the bug by myself.

Which part of my explanation is unclear?

Have a great day. ๐Ÿ™‚
Jan

#182141

Tanvir
Spectator

Hello,

Glad to hear that you have fixed it.
However, our developers will check the issue. Maybe they could release an update related to that.

Regards
Tanvir

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Trailing Slash In Pagination Using wpdm_category Shortcode’ is closed to new replies.