Pass the ReadNext post link through the link helper function

This commit is contained in:
Kyle Mathews 2016-02-23 17:41:27 -08:00
parent 9482c3f810
commit a1b0a357fe

View file

@ -1,5 +1,6 @@
import React from 'react'
import { Link } from 'react-router'
import { link } from 'gatsby-helpers'
import { prune, include as includes } from 'underscore.string'
import find from 'lodash/find'
import { rhythm, fontSizeToMS } from 'utils/typography'
@ -43,7 +44,7 @@ class ReadNext extends React.Component {
>
<Link
to={{
pathname: nextPost.path,
pathname: link(nextPost.path),
query: {
readNext: true,
},