fixes #6012 - Fixes auto-attach subscriptions button in UI, BZ 1103774

You can drop this and remove the inclusion of the $location service.