I dodaje funkcję, a wywołanie tej funtion zamiast starego przekierowanie i uzyskać te same 302 temp?

Am I brakuje somthing?