Pass the ReadNext post link through the link helper function
This commit is contained in:
parent
9482c3f810
commit
a1b0a357fe
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Link } from 'react-router'
|
import { Link } from 'react-router'
|
||||||
|
import { link } from 'gatsby-helpers'
|
||||||
import { prune, include as includes } from 'underscore.string'
|
import { prune, include as includes } from 'underscore.string'
|
||||||
import find from 'lodash/find'
|
import find from 'lodash/find'
|
||||||
import { rhythm, fontSizeToMS } from 'utils/typography'
|
import { rhythm, fontSizeToMS } from 'utils/typography'
|
||||||
|
|
@ -43,7 +44,7 @@ class ReadNext extends React.Component {
|
||||||
>
|
>
|
||||||
<Link
|
<Link
|
||||||
to={{
|
to={{
|
||||||
pathname: nextPost.path,
|
pathname: link(nextPost.path),
|
||||||
query: {
|
query: {
|
||||||
readNext: true,
|
readNext: true,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue