If, as here at work, we have test, staging and production environments, such as:
I need to be able to determine the current environment that we are in.
There is the possibility that I will currently be at a url such as:
I want to be able to grab the window.location but strip it of everything but:
And then append to that string + "/" + "my-happy-video".
I am not skilled with regex, but I suppose there would be a way to parse the window.location up to the ".com"