0
I need something to keep listening to the url ie if the url:
http://localhost:15000/api/Returnpayment/return
for acessa I want to redirect to another url. The problem is that the url is generated dynamically like this
http://localhost:15000/api/ReturnPayment/retornoPayPal?id=" + params.orderNo
I wonder if there is any way to redirect to another url only from the default url, ie http://localhost:15000/api/ReturnPayment/retornoPayPal/
ignoring everything that comes after
I already have some redirect means, only they’re fixed
.config(function ($stateProvider, $urlRouterProvider, $locationProvider, $httpProvider) {
$urlRouterProvider.when('/', '');
$urlRouterProvider.when('/api/ReturnPayment/retorno', '/');
$urlRouterProvider.when('/api/ReturnPayment/retornoPayPal', '/');
$urlRouterProvider.otherwise('/');
I cannot pass as parameter only a part of the url for this to work I have to pass the exact url
I am working with Javascript, how can I do this using Javascript ?
– Erick Zanetti
By localhost associated with php, but can yes already edit
– Felipe Duarte
I was using localhost for testing. it worked this way only I switched the split for a replace to work in my case, thank you very much.
– Erick Zanetti