This doesn't look right.  If GOVUK_WEBSITE_ROOT needs to be added, shouldn't it be added to the start of the string.

Also, isn't referrer a absolute URL (otherwise the referring_url_within_gouuk? method wouldn't work)?