D
D
d_e_l_e_x2018-02-01 20:59:00
MODX
d_e_l_e_x, 2018-02-01 20:59:00

Modx substitutes incorrect url in image src. How to fix?

Just mastering modx, do not throw stones.
I have MODX REVOLUTION 2.6.0-pl.
There is a problem: modx does not substitute the correct url in src.
In fact, the link is normal, but does not add "../" at the beginning of it.
Created migx, where one of the fields is an image. After adding an image, a link is inserted

<div class="image">
  <img src="assets/img/news/news-preview/870174074.jpg" alt="Изображение">
</div>

I understand that the problem is because the page is in a container. And it needs to be like this:
<div class="image">
  <img src="../assets/img/news/news-preview/870174074.jpg" alt="Изображение">
</div>

But how can I fix this, please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2018-02-01
@d_e_l_e_x

<base href="/">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question