@pi3r 
For performance optimisation. If we were to use a method, that url prefix logic will be processed for every search.