Fixed full origin links

This commit is contained in:
Eduard Urbach 2018-03-25 15:35:31 +02:00
parent be1adacaba
commit 9b0d20164f

View File

@ -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)