Jump to content

[SOLVED] Url problem on product page


Recommended Posts

Hello, I have the following problem:

- When I am on the homepage, images like the search bar background, arrows, etc. etc. appear with no problem.
But, when I go to a product page, all that images disappear. I found that the problem is a categorie name that appear on the url and because of that, all the images became broken.

For example, when I am on the homepage, the url of search bar image is:

http://www.wingakan.com/ramramindia/modules/blocktopmenu/img/block-search.gif

But, when I go to the product page, the url of search bar image turns to:

http://www.wingakan.com/ramramindia/panos/modules/blocktopmenu/img/block-search.gif

And it is not correct and that is why all that images won't appear. /panos/ is the category url and I must remove it from the images url.

How can I solve this?

Thanks

Link to comment
Share on other sites

I tried to delete this because I found the answer but it seems it is not possible.

So, if someone gets the same problem the solution is making sure there is {$base_dir} on the url so it works on every page.

Link to comment
Share on other sites

  • 2 weeks later...
I'm so sorry, I reallly am not smart as you would think...

where to add this?

Really appreciate you fast reply.


If you go to the page where the path is, for example, search.php, you will find the url fo the img, for example something like "../images/searchbar.gif" so you put "{$base_dir}/themes/themename/images/searchbar.gif.
This way you never get broken image links..
Link to comment
Share on other sites

I'm attaching screen shot to see if it makes sense for you?

attachment main.jpg -> show my main index page, over here, all my template icon/graphic showed up.

But when I click on Categories, Rckmount chassis, 2U form, all the template icon/graphic disappeared.

I just cannot figure out why. This is where I need help!

Thanks again for your fast reply.

47467_68ovbQweS4zYAXJQbvcL_t

47468_IJGoId6AmssRqUHPJNOn_t

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...