From 9b0d20164fd5ef434472c1f29f6e574d640c4daf Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 25 Mar 2018 15:35:31 +0200 Subject: [PATCH] Fixed full origin links --- scripts/Application.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/Application.ts b/scripts/Application.ts index 52698bbc..9576511c 100644 --- a/scripts/Application.ts +++ b/scripts/Application.ts @@ -64,6 +64,11 @@ export class Application { } load(url: string, options?: LoadOptions) { + // Remove protocol and hostname if it was specified + if(url.startsWith(location.origin)) { + url = url.substr(location.origin.length) + } + // Start sending a network request let request = this.get("/_" + url).catch(error => error)