I have a problem with the path of the images, if I load a view in /
show the images without problems that are in webroot/imagenes/
but if I access the view directly with /vista/vista
then I change the path of the images webroot/vista/imagenes/
and of course, since it is not the correct route, it does not show them.
How do I solve this?
add leading slash to url eg. /imagenes/escudof.jpg
oohh I found the problem, I put it in front ../ and the problem was solved:
<img src='../imagenes/escudof.jpg' alt="Escudo">
regards
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.