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
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

Dave Reid - October 21, 2009 - 16:56
Project:URL alter» Pathauto
Version:6.x-1.x-dev» 6.x-1.1

Moving to the pathauto issue queue. This doesn't have anything to do with the url_alter.module.

#2

greggles - October 21, 2009 - 21:24

Can you provide an example URL?

I think this is a problem with relative src attributes on your site.

#3

yudhistir - October 23, 2009 - 07:17

you can check it out on

indiabasket.net/site

and as you start browsing the sub pages you will see the images disasspering.

#4

greggles - October 23, 2009 - 14:48
Status:active» fixed

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

yudhistir - October 25, 2009 - 04:42
Status:fixed» active

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

yudhistir - November 6, 2009 - 13:34
Priority:normal» critical

#7

greggles - November 6, 2009 - 13:44
Priority:critical» normal
Status:active» fixed

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

System Message - November 20, 2009 - 13:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.