Skip to content

Commit

Permalink
bugfix: joining url parts
Browse files Browse the repository at this point in the history
  • Loading branch information
olekon committed Aug 30, 2019
1 parent 0a56843 commit 0eb7de7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/info/About.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import StaticBlock from '../common/StaticBlock.jsx';
import config from '../../../config.js';

import urlJoin from 'url-join';
import styles from '../Globals.css';

const About = props => (
<div className={styles.staticInfo}>
<StaticBlock query={config.server.url + 'static/what'} />
<StaticBlock query={urlJoin(config.server.url, 'static/what')} />
</div>
)

Expand Down
3 changes: 2 additions & 1 deletion src/components/info/Privacy.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import StaticBlock from '../common/StaticBlock.jsx';
import styles from '../Globals.css';
import urlJoin from 'url-join';
import config from '../../../config.js';

const Privacy = props => (
<div className={styles.staticInfo}>
<StaticBlock query={config.server.url + 'static/privacy'} />
<StaticBlock query={urlJoin(config.server.url, 'static/privacy')} />
</div>
);

Expand Down
3 changes: 2 additions & 1 deletion src/components/info/Terms.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import React from 'react';
import StaticBlock from '../common/StaticBlock.jsx';
import styles from '../Globals.css';
import config from '../../../config.js';
import urlJoin from 'url-join';

const Terms = props => (
<div className={styles.staticInfo}>
<StaticBlock query={config.server.url + 'static/terms'} />
<StaticBlock query={urlJoin(config.server.url, 'static/terms')} />
</div>
);

Expand Down

0 comments on commit 0eb7de7

Please sign in to comment.