Allow base referral URL to be configurable
This commit is contained in:
parent
c2b0c603c0
commit
c261ca1f5e
2 changed files with 5 additions and 1 deletions
|
@ -92,6 +92,9 @@ module.exports = React.createClass({
|
|||
// True to show the 'labs' section of experimental features
|
||||
enableLabs: React.PropTypes.bool,
|
||||
|
||||
// The base URL to use in the referral link. Defaults to window.location.origin.
|
||||
referralBaseUrl: React.PropTypes.string,
|
||||
|
||||
// true if RightPanel is collapsed
|
||||
collapsedRhs: React.PropTypes.bool,
|
||||
},
|
||||
|
@ -453,7 +456,7 @@ module.exports = React.createClass({
|
|||
console.warn('Team token not a string');
|
||||
return null;
|
||||
}
|
||||
const href = window.location.origin +
|
||||
const href = (this.props.referralBaseUrl || window.location.origin) +
|
||||
`/#/register?referrer=${this._me}&team_token=${teamToken}`;
|
||||
return (
|
||||
<div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue