diff --git a/src/js/init.js b/src/js/init.js index a9acfcce3..8cacff9a5 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 = '#/payment/' + url; + window.location = '#/uri-payment/' + url; }, 1000); } diff --git a/src/js/routes.js b/src/js/routes.js index a3bdf21e7..6c0c21f04 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -113,7 +113,7 @@ angular } }) .state('payment', { - url: '/payment/:data', + url: '/uri-payment/:data', templateUrl: 'views/paymentUri.html', views: { 'main': { diff --git a/src/js/services/uriHandler.js b/src/js/services/uriHandler.js index 3cb09e98e..da67ab4be 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 + '#/payment/%s'; + var url = base + '#/uri-payment/%s'; if(navigator.registerProtocolHandler) { navigator.registerProtocolHandler('bitcoin', url, 'Copay');