[ticket/289] Add method for checking if redirect is needed