• Resolved frylow

    (@frylow)


    When an admin logs in and views an “Affiliate links” of an affiliate, it doesn’t show the forward slash.

    It shows:
    e.g. website.com?wpam_id=11

    It should show:
    e.g. website.com/?wpam_id=11

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi, what kind of permalink do you have set up in your site? Do you have any plugin installed in your site that might be overriding your URL address?

    Plugin Author affmngr

    (@affmngr)

    @frylow, This URL comes from Settings > General Settings > Site Address (URL), which the plugin retrieves using this core WordPress function: https://codex.ww.wp.xz.cn/Function_Reference/home_url

    The plugin uses home_url('/') which retrieves the URL with the trailing slash even if it’s set as http://website.com in the settings.

    Thread Starter frylow

    (@frylow)

    Ok, but WordPress sanitizes that field and removes the ‘/’ now. So even if we try and include it, it strips it back out from that field (Settings > General Settings > Site Address (URL). You may have to start including logic to include that ‘/’ now.

    Thread Starter frylow

    (@frylow)

    Permalink setting: Post Name & Product ‘Default’ (woo)

    Plugin Author affmngr

    (@affmngr)

    Ok, but WordPress sanitizes that field and removes the ‘/’ now. So even if we try and include it, it strips it back out from that field (Settings > General Settings > Site Address (URL)

    It’s the same for every site. What I’m saying is that we are already forcing the slash in the URL (by calling home_url('/')). So it must be getting overriden by something on your site. You can deactivate one plugin at time (except affiliates manager) temporarily to see if it’s caused by a plugin.

    Thread Starter frylow

    (@frylow)

    Here is a screenshot:

    Plugins Installed:
    1) Better Font Awesome
    2) Contact Form 7
    3) Google Language Translator
    4) WooCommerce
    5) WooCommerce Authorize.Net CIM
    6) WooCommerce Google Analytics
    7) WooCommerce Subscriptions
    8) WooCommerce Xero Integration
    9) WooCommerce Zoho CRM Connector Pro
    10) WP Affiliate Manager
    11) Zoho SalesIQ

    Plugin Author affmngr

    (@affmngr)

    I thought you were referring to the affiliate portal (the dashboard that an affiliate sees once logged in). In the portal it shows the URL with the slash. We will need to update the code in the affiliate links menu.

    Please note that the functionality is not broken. It will still work without the slash in the URL.

    Plugin Author affmngr

    (@affmngr)

    We have just released a new version with this update.

    Thread Starter frylow

    (@frylow)

    Awesome… confirmed fixed… and rating given! Thanks

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Affiliate Link – format broken’ is closed to new replies.