Don't try to route external URLs

This commit is contained in:
John Firebaugh 2013-10-08 16:52:53 -07:00
parent 3bbdb00447
commit 4cf32e0f00

View file

@ -293,7 +293,7 @@ $(document).ready(function () {
$(document).on("click", "a", function(e) { $(document).on("click", "a", function(e) {
if (e.isPropagationStopped()) return; 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) { $("#search_form").on("submit", function(e) {