• Resolved doodledave

    (@doodledave)


    Hi all – I have a a problem that my little brain won’t work around!

    I can’t show you the live site as it is a client’s Intranet (using Thrive Intranet and Community) and you’d need to be logged in to see the issue… However I have screenshot my problem and I hope that’ll be enough…

    https://www.dbcj-dev.co.uk/db/reference/problem.jpg

    So a “logged in” User sees Widgets in a Right Sidebar and associated images illustrate each Widget… These images are on the Root Directory – https://www.domain.com/image.jpg

    If a User goes into the News or FAQ function at the top of the screen (see image via the link) then the Widget looks for the associated image under “www.domain.com/news/image.jpg” or “www.domain.com/faqs/image.jpg”
    and, obviously, as this isn’t a directory, it shows a broken link…

    How can I get the Widgets as seen within the News or FAQs Functions to show the correct image? Now matter where I put the Image on the webspace, the site adds “/news/” into the URL string and breaks the Image link…

    This one really has me foxed.
    Thanks in advance.

    David

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • If the images show fine on the homepage but not on inner pages, it’s going to be the path set in the tag that’s the problem.

    I’m going to bet that the images are set up like this:

    <img src="image1.jpg" alt="Image" />

    What that does is tell the browser to look on the same directory level as the current page for that image, so when the directory doesn’t exist, there’s no imae.

    What you need to do is either set the full URL of the image, or set is to come from the root directory.

    <img src="https://www.domain.com/image1.jpg" alt="Image" />
    
    <img src="/image1.jpg" alt="Image" />
    Thread Starter doodledave

    (@doodledave)

    …and you would have won ??
    Thank you so much… should have worked this out myself but it’s 4am and my brain is fried.

    Thanks again.
    Dave

    @doodledave: if this issue is resolved, you should mark it as such for everyone.

    Thread Starter doodledave

    (@doodledave)

    Sorry – Didn’t realise, quite new to this.
    Thank you for the heads up.
    D

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Images being lost after entering News function’ is closed to new replies.