Fix error from [28024]: there's no such thing as window.location.href.test.  Refs #14279.