Skip to content

Commit

Permalink
navigate back to Other hub from an article in Other
Browse files Browse the repository at this point in the history
  • Loading branch information
marcochavezf committed Oct 28, 2022
1 parent 0b3f28b commit b4075e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ function toggleHeaderMenu() {
function navigateBack() {
if (window.location.pathname.includes('/request-money/')) {
window.location.href = '/hubs/request-money';
} else {
} else if (window.location.pathname.includes('/send-money/')) {
window.location.href = '/hubs/send-money';
} else {
window.location.href = '/hubs/other';
}

// Add a little delay to avoid showing the previous content in a fraction of a time
Expand Down

0 comments on commit b4075e5

Please sign in to comment.