Web staff client iframe URL generation can fail with hostnames starting with "eg" or "staff"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Undecided
|
Jeff Godin |
Bug Description
In several places within the web staff client, URLs for iframes are generated based on the current URL:
$location.
$location.
These replacements can fail on URLs where the hostname part begins with "staff" or "eg".
The most obvious symptom is that these interfaces fail to load, and if you dig into the matter, you'll see that the URL that the browser is attempting to load is https:/
One option would be to use a pattern like /!\/\/staff.*/
Another option is to embrace the fact that we don't currently seamlessly/
Working branch on that way.
I've revised some of my thoughts and will reflect that in the working branch and a followup comment -- but the pattern /\/eg\/staff.*/ without putting /eg/ or a match group in the substitution string will break in at least a few of these places.