title: Wordpress localhost URL executing twice
body: <p>Where is the site url saved? bloginfo('template_url')</p>
  
  <p>every time I click a link I get double my site url. localhost/postmyproject/localhost/postmyproject</p>
  
  <p>I set my site_url, home to: <code>localhost/postmyproject</code></p>
  
  <p>In my wp-config.php file I have the following settings:</p>
  
  <pre><code>define( 'WP_SITEURL', 'localhost/postmyproject' );
  define( 'WP_HOME', 'localhost/postmyproject' );
  </code></pre>
  
  <p>My home page code is as follows:</p>
  
  <pre><code>do_action('ProjectTheme_top_menu_items');
  
      $menu_name = 'primary-projecttheme-header';
  
          if ( ( $locations = get_nav_menu_locations() ) &amp;&amp; isset( $locations[ $menu_name ] ) ) {
              $menu = wp_get_nav_menu_object( $locations[ $menu_name ] );
              $menu_items = wp_get_nav_menu_items($menu-&gt;term_id);
              foreach ( (array) $menu_items as $key =&gt; $menu_item ) {
                  $title = $menu_item-&gt;title;
                  $url = $menu_item-&gt;url;
                      if(!empty($title))
                          echo '&lt;li&gt;&lt;a href="' . $url . '"&gt;' . $title . '&lt;/a&gt;&lt;/li&gt;';
      }
  } 
  </code></pre>