Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
Added check for preview when adding the prefix path
Browse files Browse the repository at this point in the history
  • Loading branch information
master12 authored Apr 9, 2019
1 parent 159a7ce commit a37f825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/utils/temp-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TempLink extends React.Component {
if (href.includes('gatsby-public')) {
to = href.replace('/gatsby-public', '')
}
else if(href.startsWith("/")){
else if(href.startsWith("/") && !href.includes("/preview")){
to = withPrefix(href)
}
else {
Expand Down

0 comments on commit a37f825

Please sign in to comment.