Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds langs to path and redirect to staging if payment method is advcash or payeer #7

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

punitcodes
Copy link

@punitcodes punitcodes commented May 16, 2020

  • Adds language in url path if languageRedirect is set to true
  • remove token from forgot password url and set with cookie
  • Redirect to api.n.exchange or sapi.n.exchange if payment method is advcash, payeer or sepa

- Adds language path in url (only if its n.exchange)
- Redirect to staging if payment method is advcash or payeer
index.js Outdated
let params = {};
if (req.query.cur_from && req.query.cur_to) {

// Dont add language path in url, if its not n.exchange
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if some new whitelabels come that use our lang param?

However whitelabels generally do not get traffic from bestchange

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Client side routing will be used

Copy link
Author

@punitcodes punitcodes May 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced it with const languageRedirect = true;
when set to true, language will be added in url path while redirecting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants