V
V
veroni13372022-01-17 09:39:33
MODX
veroni1337, 2022-01-17 09:39:33

How to add a slash at the beginning of an img link in modx?

How to add a slash at the beginning of an img link in modx. The site is multilingual and the img path is given with the language code, i.e. https://domain/en/photo.png and you need without en https://domain/photo.png . If you insert a slash at the beginning of the link, the image is loaded. Now I need to somehow add a slash at the beginning of the path to all the pictures in tinyMce. I tried to change it <base href="">to a slash, then the language stops working. I need images to be loaded from the root.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Golyagin, 2022-01-17
@veroni1337

Set system settings to tinymcerte (I don't remember if there are such settings in normal tinymce, this is for RTE):
Links in different contexts - tinymcerte.links_across_contexts - Yes
Relative URLs - tinymcerte.relative_urls - No
Remove host script - tinymcerte.remove_script_host - No

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question