Fixes search not triggering when loading from permalink