permalink on search bugfix