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?

Comments

dave reid’s picture

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.

greggles’s picture

Can you provide an example URL?

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

yudhistir’s picture

you can check it out on

indiabasket.net/site

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

greggles’s picture

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"/>
yudhistir’s picture

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?

yudhistir’s picture

Priority: Normal » Critical
greggles’s picture

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.

Status: Fixed » Closed (fixed)

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

candelas’s picture

Version: 6.x-1.1 » 6.x-1.5
Category: support » bug
Status: Closed (fixed) » Active

sorry to reopen because i get this problem too.
sorry also for my english :)

i use pathauto and in the url where i assing the content type to build the path:

http://mysite.org/content-type/title-page

if i upload a image with relative path, i get an error.

my relative path:
sites/all/files

i put in the creation node, in the body:

sites/all/files/image.png

when i see the page, the image doesnt show

if i copy the path, it says

http://mysite.org/content-type/sites/all/files/image.png

if i change the url, i can see it

http://mysite.org/sites/all/files/image.png

thanks for your module, it is a big feature :)
and thanks for any help to resolve this!

dave reid’s picture

Category: bug » support
Status: Active » Closed (fixed)

We'll repeat: "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."