• Resolved expforex

    (@expforex)


    Hello,

    I am using your Simple Download Monitor plugin along with the WPML plugin for a multilingual site and encountered an issue with generating download links. When a URL contains a trailing slash, the generated download link includes an extra slash, resulting in an error like: https://expforex.com/es//?sdm_process_download=1&download_id=59<span style="font-family: inherit; font-size: 0.8rem;">26.</span>
    To resolve this issue, I made a fix by trimming the trailing slash from the URL before generating the download link. This prevents the double slash problem. Below are the specific lines of code and files where changes were made:
    1. File: sdm-fancy-2.php (line 122):
    $homepage = rtrim( get_bloginfo( 'url' ), '/' ); // Remove the final slash if there is one
    2. File: sdm-post-type-content-handler.php (line 89):
    $homepage = rtrim( get_bloginfo( 'url' ), '/' ); // Remove the final slash if there is one
    3. File: sdm-fancy-0.php (line 114):
    $homepage = rtrim( WP_SIMPLE_DL_MONITOR_SITE_HOME_URL, '/' ); // Remove the final slash if there is one

    It would be great if you could incorporate this fix in future updates of the plugin to prevent similar issues for other users, especially those using WPML or other multilingual plugins.

    Thank you in advance for your attention to this matter, and I look forward to the resolution.

    Best regards,

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Thank you for reaching out to us. I have submitted a message to the developers to investigate further your findings and solution.

    Kind regards.

    Plugin Author mra13

    (@mra13)

    Thank you. I have updated the code of the plugin. The changes will go live with the next release.

    Plugin Author mra13

    (@mra13)

    The update for it has been released.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.