diff --git a/src/components/common/Navigation.js b/src/components/common/Navigation.js
index d0baf23..59e5bb0 100644
--- a/src/components/common/Navigation.js
+++ b/src/components/common/Navigation.js
@@ -1,6 +1,7 @@
import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'gatsby'
+import config from '../../utils/siteConfig'
/**
* Navigation component
@@ -17,7 +18,9 @@ const Navigation = ({ data, navClass }) => (
{data.map((navItem, i) => {
if (navItem.url.match(/^\s?http(s?)/gi)) {
return {navItem.label}
- } else {
+ } else if (navItem.url.slice(0, config.siteUrl.length) == config.siteUrl) {
+ return {navItem.label}
+ } else{
return {navItem.label}
}
})}