Skip to content

Conversation

@punitm0
Copy link

@punitm0 punitm0 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

@punitm0 punitm0 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

@punitm0 punitm0 force-pushed the feat/server-lang-redirect branch from 53d9a6c to 752ea3c Compare May 20, 2020 10:37
@punitm0 punitm0 requested a review from BeOleg May 20, 2020 10:39
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.

3 participants