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

#496 One time links should be generated by our url shortener #615

Merged
Merged
4 changes: 2 additions & 2 deletions src/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const Config = {
!process.env.REACT_APP_THROW_SAVE_PROFILE_ERRORS || process.env.REACT_APP_THROW_SAVE_PROFILE_ERRORS === 'true',
withMockedFeeds: process.env.REACT_APP_WITH_MOCKED_FEEDS === 'true',
safariMobileKeyboardGuidedSize: process.env.REACT_APP_SAFARI_MOBILE_KEYBOARD_GUIDED_SIZE === 'true',
receiveUrl: process.env.REACT_APP_RECEIVE_URL || `${publicUrl}/AppNavigation/Dashboard/Send`,
sendUrl: process.env.REACT_APP_SEND_URL || `${publicUrl}/AppNavigation/Dashboard/Home`,
receiveUrl: process.env.REACT_APP_RECEIVE_URL || `${publicUrl}/Send`,
sirpy marked this conversation as resolved.
Show resolved Hide resolved
sendUrl: process.env.REACT_APP_SEND_URL || publicUrl,
sirpy marked this conversation as resolved.
Show resolved Hide resolved
ethereum: {
'42': {
network_id: 42,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/share/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export function generateShareObject(title: string, text: string, url: string): S
return {
title,
text,
url: encodeURI(url),
url,
}
}

Expand Down Expand Up @@ -211,5 +211,5 @@ export function generateShareLink(action: ActionType = 'receive', params: {} = {
throw new Error(`Link couldn't be generated`)
}

return `${destination}${queryParams}`
return encodeURI(`${destination}${queryParams}`)
}