We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45078
    • 34 Posts
    I've deployed my 2.4 project to my production server, everything is working just as it was locally, except my navigation menu's href links are blank...

    The resources are all there, and I can visit them directly, but when I look at the markup containing <a href="[[~20]]">, <a href="[[~21]]">, <a href="[[~22]]"> etc. URLs are not being output.

    Any ideas?
      • 37377
      • 64 Posts
      Could you post some more code?
        • 45078
        • 34 Posts
        Not much more to post... but here's the chunk

        <paper-header-panel drawer mode="seamed">
        	<paper-toolbar class="medium-tall menu-toolbar layout horizontal center-center">
        		<img class="logo" src="assets/img/logo.svg" alt="">
        	</paper-toolbar>
        	<paper-menu>
        		<paper-item><a href="[[~2]]" class="flex"><iron-icon icon="home"></iron-icon>Home</a></paper-item>
        		<paper-item><a href="[[~29]]" class="flex"><iron-icon icon="search"></iron-icon>Parts Search</a></paper-item>
        		<paper-item><a href="[[~17]]" class="flex"><iron-icon icon="communication:message"></iron-icon>News</a></paper-item>
        		<paper-item><a href="[[~4]]" class="flex"><iron-icon icon="maps:local-offer"></iron-icon>Specials</a></paper-item>
        		
        		<paper-submenu>
        			<paper-item class="menu-trigger"><iron-icon icon="shopping-cart"></iron-icon>Orders</paper-item>
        			<paper-menu class="menu-content sublist">
        				<paper-item><a href="[[~12]]" class="flex">My Cart</a></paper-item>
        				<paper-item><a href="[[~47]]" class="flex">Order History</a></paper-item>
        			</paper-menu>
        		</paper-submenu>		
        		<paper-item><a href="[[~7]]" class="flex"><iron-icon icon="social:school"></iron-icon>Resources</a></paper-item>
        		<paper-item><a href="[[~44]]" class="flex"><iron-icon icon="social:group"></iron-icon>Uniforms & Stationery</a></paper-item>
        		<paper-item><a href="[[~5]]" class="flex"><iron-icon icon="settings"></iron-icon>Settings</a></paper-item>
        		<paper-item id="btn-logout"><iron-icon icon="exit-to-app"></iron-icon>Log Out</paper-item>
        		<div class="copyright">
        			<p>Connect v1.0.0</p>
        			<p>Copyright © 2015</p>
        		</div>
        	</paper-menu>
        	
        </paper-header-panel>
          • 30585
          • 833 Posts
          Did you enable Friendly URL in system settings and RewriteBase / in the .htaccess file? Were those links generated on your local machine? Last note -- are you getting any errors in the log file? [ed. note: treigh last edited this post 8 years, 6 months ago.]
            A MODx Fanatic
            • 3749
            • 24,544 Posts
            Make sure you have this in the head section of all templates:

            <base href="[[++site_url]]" />


            If you have multiple front-end contexts, make it:

            <base href="[[!++site_url]]" />


            Did you rename ht.access to .htaccess?

              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting