alfonsodg / demo-web2py

Apache License 2.0
0 stars 0 forks source link

CSS does not translate relative images urls #47

Closed alfonsodg closed 10 years ago

alfonsodg commented 10 years ago

From sebastianovide@gmail.com on August 12, 2009 04:46:04

What steps will reproduce the problem? 1. add an image to a css file in static/(images/myimage.jpg)

  1. put myimage.jpg in static/images

What is the expected output?

the image should be displayed (the url should be relative to the directory that contains the css)

What do you see instead?

the url loses the application and controller name: (http://localhost/images/myimage.jpg

What version of the product are you using?

Version 1.65.11 (2009-08-04 16:42:46)

On what operating system?

Linux Please provide any additional information below. example of css code:

background: url(images/myimage.jpg) no-repeat;

Original issue: http://code.google.com/p/web2py/issues/detail?id=48

alfonsodg commented 10 years ago

From sebastianovide@gmail.com on August 12, 2009 02:50:58

from mailing list:

I never had this problem. If the css is in : /init/static/filename.css, then url(images/ myimage.jpg) should translate in /init/static/images/myimage.jpg

which browser are you using?

Massimo

tried with

SeaMonkey 1.1.15 Firefox 3.5 Firefox 3.0

alfonsodg commented 10 years ago

From sebastianovide@gmail.com on August 12, 2009 04:10:54

You are right Massimo. The CSS works fine. So we can close the bug as "not a bug" or "cannot reproduce" etc...

The images missing were not part of the CSS Template... they are in the HTMLs...They include images using relative paths everywhere....

<img src="images/pic_1.jpg" .....

and this is translated as http://local/images/pic_1.jpg

alfonsodg commented 10 years ago

From massimod...@gmail.com on August 13, 2009 08:26:51

Not a bug.

Status: Invalid