• Hello,

    We’ve managed to add a page with the setup shortcode which works. However the image links are broken due to an extra ‘/’ being added before ‘dist’

    https://cdn2.domain.co.uk/wp-content/plugins/wp-2fa//dist/images/google-logo.png

    This is how they’re generated

    <div class="apps-wrapper">
    <a href="https://www.wpwhitesecurity.com/support/kb/configuring-2fa-apps/#authy" target="_blank" class="app-logo" rel="noopener"><img src="https://cdn2.domain.co.uk/wp-content/plugins/wp-2fa//dist/images/authy-logo.png?x92760"></a>
    <a href="https://www.wpwhitesecurity.com/support/kb/configuring-2fa-apps/#google" target="_blank" class="app-logo" rel="noopener"><img src="https://cdn2.domain.co.uk/wp-content/plugins/wp-2fa//dist/images/google-logo.png?x92760"></a>
    SNIPPED
    </div>

    Within the userprofile.php, these are being generated by the following code:

    class="app-logo"><img src="<?php echo esc_url( WP_2FA_URL . '/dist/images/' . $app['logo'] ); ?>"></a>

    Is there a way to resolve this ? We use W3 total cache to upload our images to the CDN. Not sure if there is an extra trailing ‘/’ being stored within the ‘WP_2FA_URL’ because of this.

    Kind Regards

Viewing 1 replies (of 1 total)
  • Plugin Support Danny Jones

    (@distinctivepixels)

    Hello @devksec

    Thanks for letting us know, we shall have this extra slash removed in the next update. In the meantime you can remove it from the code you have found (excellent work on locating this by the way) – like this:

    class="app-logo"><img src="<?php echo esc_url( WP_2FA_URL . 'dist/images/' . $app['logo'] ); ?>"></a>

    Thanks again

    Daniel @ WP White Security

Viewing 1 replies (of 1 total)
  • The topic ‘Broken Icons on setup page’ is closed to new replies.