* Example before:
location + '/mark_as_solved'
/request_for_comments/30885?locale=de/mark_as_solved
Now: //localhost:3333/request_for_comments/30885/mark_as_solved
Note: https or http will be added automatically by browsers
Deprecation Notice:
The jqXHR.success(), jqXHR.error(), and jqXHR.complete() callbacks will be deprecated in jQuery 1.8. To prepare your code for their eventual removal, use jqXHR.done(), jqXHR.fail(), and jqXHR.always() instead.