S
S
Sergey Savostin2015-04-13 15:31:22
MODX
Sergey Savostin, 2015-04-13 15:31:22

How to get the requested alias in MODx (Revolution) on page 404?

Is it possible somehow to get on the 404 page the URL or alias of the requested page and not the resource of the error_page itself?
Needed to display a list of pages that have a similar URL/alias.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Tatarkin, 2015-04-21
@tomasoyer

When returning a 404 error, the URL does not change.
So $_SERVER['REQUEST_URI']for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question