images not working when clean URL is on
yudhistir - October 21, 2009 - 06:12
| Project: | Pathauto |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | yudhistir |
| Status: | closed |
Jump to:
Description
The images either displayed as it is or in module are displayed only on the first page, later they are not show when the clear URL is enable, its same with
{Clean URL+ Pathauto}
or
{Clean URL- Pathauto}
The links get converted from:
www.portal.com/site/sites/default/files/nextevent.jpg
TO
www.portal.com/site/content/sites/default/files/nextevent.jpg
How can this be corrected?

#1
Moving to the pathauto issue queue. This doesn't have anything to do with the url_alter.module.
#2
Can you provide an example URL?
I think this is a problem with relative src attributes on your site.
#3
you can check it out on
indiabasket.net/site
and as you start browsing the sub pages you will see the images disasspering.
#4
On your home page is this image:
<img height="180" width="126" alt="" src="sites/default/files/event.jpg"/>When you go to a subpage, of course that will not work because it is a relative URL. You need a / before it.
<img height="180" width="126" alt="" src="/sites/default/files/event.jpg"/>#5
Tride that doesn't work. As this what is happening to the links:
HOMEPAGE:
http://indiabasket.net/site/sites/default/files/nextevent.jpg
subpage:
http://indiabasket.net/site/content/sites/default/files/nextevent.jpg
Here in the subpage, the Directory "CONTENT" is getting added. which actually doesn't exist. This is making the image go blank on the subpages. So how can this be sorted out?
#6
#7
This is not a pathauto problem per se - it is a problem with relative and absolute links to images. I suggest you research that topic rather than trying to get help by re-opening or bumping priority of this issue.
#8
Automatically closed -- issue fixed for 2 weeks with no activity.