Refs #17455. Fix and improve clarity of address bar hiding code