diff --git a/_includes/nav.html b/_includes/nav.html
index 555e261..e9aa662 100644
--- a/_includes/nav.html
+++ b/_includes/nav.html
@@ -13,10 +13,25 @@
{% for link in site.navbar-links %}
+ {% capture before %}{{ link[1] | split: "://" | first }}{% endcapture %}
+ {% capture after %}{{ link[1] | split: "://" | last }}{% endcapture %}
-
- {{ link[0] }}
-
- {% endfor %}
+ {% assign internal = true %}
+ {% if before != after %}
+ {% if before == "http" or before == "https" %}
+ {% assign internal = false %}
+ {% endif %}
+ {% endif %}
+
+ {% if internal %}
+ {% capture linkurl %}{{ site.baseurl }}/{{ link[1] }}{% endcapture %}
+ {% else %}
+ {% capture linkurl %}{{ link[1] }}{% endcapture %}
+ {% endif %}
+
+ {{ link[0] }}
+
+ {% endfor %}
@@ -31,4 +46,4 @@
{% endif %}
-
\ No newline at end of file
+