R
R
Roman2019-05-01 15:04:21
PHP
Roman, 2019-05-01 15:04:21

Why did relative links become absolute?

Hello!
Usually when you specify relative links, for example:

<a href="#reg">Регистрация</a>
<a href="?sort=asc">Сортировка</a>

Then these links lead to the same page with the addition of these "variables". But now, for some reason, on the current project, all these links lead to the main one, for example: mydomain.ru/#reg, mydomain.ru/?sort=asc. You have to add the full path to the page to these links. The question is how to avoid this and what is the problem, in the server settings, where does it change?
CMS MODX.
Please tell me, I have not encountered such a problem before. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wisgest, 2019-05-01
@vlasenkov

And an element <base>(or maybe an attributexml​:base ) in the code is not tucked into the code (may be present in static HTML or inserted by a script)? Then it explains.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question