Loading

'setRedirect' returns HTTP status code 200

Дата публикации: Jun 26, 2023
Описание
When a page is redirected with setRedirect(), the HTTP status code returned is 200 but not 3XX .
Решение
This behavior is expected. setRedirect() uses a server-side forward (not a server-side redirect). The forwarded request is handled by the forwarded page in the same server and then the result of the forwarded page is returned to the client. So, a 200 status code is returned.
Номер статьи базы знаний

000383215

 
Загрузка
Salesforce Help | Article