title: Double slash in assets URLs - 404 error in WordPress
body: <p>site: <a href="https://opalschool.org/" rel="nofollow">https://opalschool.org/</a></p>
  
  <p>I'm seeing a lot of 403 errors on a site of mine, and I see JavaScript errors in Google Developer Tools console that always show a double forward slash in different plugin URLs:</p>
  
  <blockquote>
    <p>Failed to load resource: the server responded with a status of 403 ()
    <a href="https://opalschool.org/wp-content/plugins/wp-smush-pro//assets/shared-ui/wdev-ui.css?ver=1.0" rel="nofollow">https://opalschool.org/wp-content/plugins/wp-smush-pro//assets/shared-ui/wdev-ui.css?ver=1.0</a> Failed to load resource: the server responded with a status of 403 ()
    load-scripts.php?c=1&amp;load[]=jquery-core,jquery-migrate,utils,plupload&amp;ver=6c00de4……:9 JQMIGRATE: Migrate is installed, version 1.4.1</p>
  </blockquote>
  
  <p>When I am viewing the admin page for Smush Pro I get the above errors, and the editing buttons are not available... this makes sense since the double slash is keeping some assets from loading. I've tested and removing the double slash before the assets/ folder reveals the files are there.</p>
  
  <p>I see the same thing happen for some other plugins too (learndash), and I just installed WP Smush Pro on this site today. So I know the issue has been happening for a bit.</p>
  
  <p>I have tried the following with no success:</p>
  
  <ul>
  <li>changing the <code>.htaccess</code> file</li>
  <li>re-saving permalinks</li>
  <li>turning off redirect related plugins</li>
  <li>searching the database for " //assets/" in links to try to change any that may have been written incorrectly but were lingering</li>
  </ul>
  
  <p>I have a staging site copy of the live site that is a recent copy in the last few days, and it does not show the errors. I have tried comparing plugins on both sites and not found any causes. I may get further with this comparison, but haven't had that much time on it yet.</p>