mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Use the username for slugs to highlights
This commit is contained in:
parent
3667dc32a7
commit
c0187bd1e7
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ export function HighlightItem(props: HighlightItemProps): JSX.Element {
|
|||
<StyledQuote
|
||||
onClick={(event) => {
|
||||
if (router && props.viewer) {
|
||||
const dest = `/${props.viewer}/${props.item.slug}#${props.highlight.id}`
|
||||
const dest = `/${props.viewer.profile.username}/${props.item.slug}#${props.highlight.id}`
|
||||
router.push(dest)
|
||||
}
|
||||
event.preventDefault()
|
||||
|
|
|
|||
Loading…
Reference in a new issue