Updating links if logged in and search works on substrings