account for rails path in URLs
Merge pull request #312 from ministryofjustice/clientside_timeout

account for rails path in URLs