Skip to content

Commit 1dc4287

Browse files
committed
Fix issue with hashes assuming root
1 parent f16765b commit 1dc4287

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/__tests__/components/__snapshots__/Item.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ ShallowWrapper {
5757
</div>
5858
</div>,
5959
"className": undefined,
60-
"href": "/#item_id",
60+
"href": "#item_id",
6161
"onClick": [Function],
6262
},
6363
"ref": null,
@@ -184,7 +184,7 @@ ShallowWrapper {
184184
</div>
185185
</div>,
186186
"className": undefined,
187-
"href": "/#item_id",
187+
"href": "#item_id",
188188
"onClick": [Function],
189189
},
190190
"ref": null,

src/components/Item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Item extends Component {
6363
}
6464

6565
return <a
66-
href={`/${currentHash}`}
66+
href={currentHash}
6767
className={className}
6868
onClick={this.onClick}
6969
>

0 commit comments

Comments
 (0)