diff --git a/src/js/init.js b/src/js/init.js index 8cacff9a5..a9acfcce3 100644 --- a/src/js/init.js +++ b/src/js/init.js @@ -56,7 +56,7 @@ angular.element(document).ready(function() { function handleBitcoinURI(url) { if (!url) return; setTimeout(function() { - window.location = '#/uri-payment/' + url; + window.location = '#/payment/' + url; }, 1000); } diff --git a/src/js/routes.js b/src/js/routes.js index eda4ad198..a3bdf21e7 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -112,8 +112,8 @@ angular } } }) - .state('uri-payment', { - url: '/uri-payment/:data', + .state('payment', { + url: '/payment/:data', templateUrl: 'views/paymentUri.html', views: { 'main': { @@ -385,7 +385,7 @@ angular walletHome: 0, copayers: -1, cordova: -1, - uri-payment: -1, + payment: -1, preferences: 11, preferencesColor: 12, diff --git a/src/js/services/uriHandler.js b/src/js/services/uriHandler.js index da67ab4be..3cb09e98e 100644 --- a/src/js/services/uriHandler.js +++ b/src/js/services/uriHandler.js @@ -4,7 +4,7 @@ var UriHandler = function() {}; UriHandler.prototype.register = function() { var base = window.location.origin + '/'; - var url = base + '#/uri-payment/%s'; + var url = base + '#/payment/%s'; if(navigator.registerProtocolHandler) { navigator.registerProtocolHandler('bitcoin', url, 'Copay');