We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27330
    • 884 Posts
    Hi everyone.
    (using modx 1.0.4)

    I'm having hard time with FURL and jquerymobile displaying images.
    when I navigate to page with images they are not showing but they do show if I refresh the page.

    I suspect it has something to do with the base href which I have in my modx headers.
    <base href="[(site_url)]"/> and the one added by jquery mobile if i understand correctly. (http://jquerymobile.com/demos/1.0a1/docs/pages/docs-navmodel.html"" target="_blank" rel="nofollow">Developer explanation of base url management)

    If I remove my own base url then the path is messed up and the images can't be found.

    does anyone have any idea how to fix this?
    the page in question can be found here
    please expend any option under the "Most Popular Additions" to see the problem.
    http://m.roomdividersny.com/services/

    thanks in advance for any direction.




      • 3109 ☆ A M B ☆
      • 894 Posts
      Try adding [(site_url)] before all your images.

      Right now it seems like you have a subdomain for this mobile page and your images are relative so the site is looking for the images in the http://m.roomdividersny.com/services/assets/images/ folder which does not exist.

      if you add the [(site_url)] to your images it should work because they will be referencing the correct path.

      Hope that helps smiley
        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX
        • 27330
        • 884 Posts
        Thanks for the reply,
        you are right but isn't that the purpose of the <base> tag altogether?

        the site is converted from the standard sites and all the images are TVs of Ditto TPL so adding manually the domain isn't going to be so easy. (<p>[+myImageTV+]</p>
          • 3109 ☆ A M B ☆
          • 894 Posts
          Maybe try changing the base href in the mobile template to
           [[++base_url]] 
          that might do the trick
            Benjamin Marte
            Interactive Media Developer
            Follow Me on Twitter | Visit my site | Learn MODX