Skip to content

Commit

Permalink
make sure to call getFinalUrl on every url generator for the sake of …
Browse files Browse the repository at this point in the history
…languages
  • Loading branch information
taeguscromis committed Feb 19, 2019
1 parent 30686b9 commit 3c92def
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 98 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ <h2 class="slim-logo"><a href="index.html"><span>EXPLORER</span></a></h2>
success: function(data){
if(data.result){
sessionStorage.setItem('searchTransaction', JSON.stringify(data.result));
window.location.href = transactionExplorer.replace('{id}', text);
window.location.href = getFinalUrl(transactionExplorer.replace('{id}', text));
} else if(data.error) {
xhrGetTsx = $.ajax({
url: api + '/json_rpc',
Expand All @@ -230,7 +230,7 @@ <h2 class="slim-logo"><a href="index.html"><span>EXPLORER</span></a></h2>
if(data.result){
txsByPaymentId = data.result.transactions;
sessionStorage.setItem('txsByPaymentId', JSON.stringify(txsByPaymentId));
window.location.href = paymentIdExplorer.replace('{id}', text);
window.location.href = getFinalUrl(paymentIdExplorer.replace('{id}', text));
} else if(data.error) {
$('#page').after(
'<div class="alert alert-warning alert-dismissable fade in" style="position: fixed; right: 50px; top: 50px;">'+
Expand Down
Loading

0 comments on commit 3c92def

Please sign in to comment.