Use a regex to determine the context from the URL