M
M
Maxim Chernykh2022-02-11 08:12:09
MODX
Maxim Chernykh, 2022-02-11 08:12:09

Redirect not working, how to fix?

{$_modx->sendRedirect( $_modx->makeUrl('5') )}

6205effc2bf20773082174.png

The URL of the page is normal, everything is received, but there is an error when redirecting, how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Vasiliev, 2022-02-11
@amvasiljev

$url = $modx->makeUrl(54);
$modx->sendRedirect($url);
in id quotes are not superfluous?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question