[Frontend] Add guard to routing