We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3456
    • 5 Posts
    Hello All,

    I am having a bit of trouble in having modx revo create correct resource links, our site is www.bizards.in and we have different sections on the site, I will now talk about the issue we are having in the services section.
    We have certain sub resources under services, and we have set Use Friendly Alias Path in FURL settings to yes

    So now the URL for <li><a href="[[~33]]" class="clsleftactiveli">Mobile Application Development</a></li>

    http://www.bizards.in/services/services/mobile-application-development.html

    instead of http://www.bizards.in/services/mobile-application-development.html

    Where as if we set Use Friendly Alias Path in FURL settings to no it generates the URL as http://www.bizards.in/services/mobile-application-development.html

    but then it is not a working URL can you please suggest what can be done to make sure "[[~33]]" does output the correct URL
      • 33968
      • 863 Posts
      Have you included <base href="[[++site_url]]" /> in your site <head> section?
        • 3456
        • 5 Posts
        Thanks that did the trick
          • 6228
          • 249 Posts
          [tt]<base href="[[!++site_url]]" />[/tt] is better (note the exclamation mark), and prevents problems when the scheme changes, such as going from http to https.
            lo9on.com

            MODx Evolution/Revolution | Remote Desktop Training | Development
            • 33968
            • 863 Posts
            But if your site is on http: only how is it better? Just wondering...
              • 6228
              • 249 Posts
              If your visitor won’t be jumping from subdomain to subdomain, or SSL to non-SSL, then [tt]<base href="[[++site_url]]" />[/tt] is fine, and may give you a micro-fractional performance improvement since the tag is cached and doesn’t change (until you clear your cache).

              IMHO if you are a developer/designer, I feel though it is good practice to always call that tag as uncached (with the exclamation mark). That will certainly prevent problems and headaches if one of your sites ever does have a change in subdomain or scheme.
                lo9on.com

                MODx Evolution/Revolution | Remote Desktop Training | Development
                • 33968
                • 863 Posts
                Fair enough - I haven’t built a cross-scheme site yet with modx but I will certainly keep that in mind. Cheers for the explanation!