From 4cf32e0f0043ad73bf8ecd5320ce1ab55e81e386 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 8 Oct 2013 16:52:53 -0700 Subject: [PATCH] Don't try to route external URLs --- app/assets/javascripts/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index ef23e340d..77b247c10 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -293,7 +293,7 @@ $(document).ready(function () { $(document).on("click", "a", function(e) { if (e.isPropagationStopped()) return; - if (OSM.route(this.pathname + this.search + this.hash)) e.preventDefault(); + if (this.host === window.location.host && OSM.route(this.pathname + this.search + this.hash)) e.preventDefault(); }); $("#search_form").on("submit", function(e) { -- 2.43.2