Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question