Use $location service to retrieve back URL
Use $location service for WP edit back URL
Fix indentation
Fix tests
Merge pull request #2269 from opf/hotfix/17555_error_message_displayed_after_wp_edit

17555 error message displayed after wp edit