Skip to content

Commit f62201f

Browse files
committed
fix false appending to links
1 parent 0713f9a commit f62201f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/default/Link.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ import { ThemeContext } from '../../contexts/ThemeContext';
55

66
const addTrailingSlash = uri => {
77
const addSlash = uri => {
8-
uri && (uri += uri.endsWith('/')) ? '' : '/';
9-
return uri;
8+
if (uri != undefined) {
9+
uri += uri.endsWith('/') ? '' : '/';
10+
return uri;
11+
}
1012
};
1113

1214
const removeSlash = uri => {

0 commit comments

Comments
 (0)