title: Why wordpress directory slash not present in static home page while present in other pages?
body: <p>My javascript is not popping up in my static home page because the forward slash is gone right after the <code>get_stylesheet_directory_uri()</code> even if I have correctly placed it in my functions.php file. Whenever I visit another page of my site, the forward slash is present and the alert popped up in that page. Here is my code.</p>
  
  <p><strong>Functions.php</strong></p>
  
  <pre><code>&lt;?php
  
     function custom_javascript(){
      wp_enqueue_script( 'custom js', get_stylesheet_directory_uri() .'/js/custom.js' );
     }
  
     add_action( 'wp_enqueue_scripts', 'custom_javascript' );
  </code></pre>
  
  <p><strong>my-static-homepage-page-source</strong> (forward slash is not present)</p>
  
  <pre><code> &lt;script type='text/javascript' src='http://caraga.com/template/wp-content/themes/gwt-wordpress-master-childjs/custom.js?ver=4.1'&gt;&lt;/script&gt;
  </code></pre>
  
  <p><strong>my-other-page-page-source</strong> (forward slash is present)</p>
  
  <pre><code> &lt;script type='text/javascript' src='http://caraga.com/template/wp-content/themes/gwt-wordpress-master-child/js/custom.js?ver=4.1'&gt;&lt;/script&gt;
  </code></pre>