Fix a bug that used the website URL instead of the location.