Posted by yudhistir on October 21, 2009 at 6:12am
Jump to:
| Project: | Pathauto |
| Version: | 6.x-1.5 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | yudhistir |
| Status: | closed (fixed) |
Issue Summary
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
#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.
#9
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!
#10
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."