We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9a905e + c22b5bd commit c59c5f6Copy full SHA for c59c5f6
src/templates/laroute.js
@@ -31,7 +31,15 @@
31
var uri = this.replaceNamedParameters(route.uri, parameters);
32
var qs = this.getRouteQueryString(parameters);
33
34
- return this.getCorrectUrl(uri + qs);
+ if(this.isOtherHost(route)){
35
+ return "//" + route.host + "/" + uri + qs;
36
+ }
37
+
38
+ return this.getCorrectUrl(host + uri + qs);
39
+ },
40
41
+ isOtherHost: function (route){
42
+ return route.host != window.location.hostname;
43
},
44
45
replaceNamedParameters : function (uri, parameters) {
0 commit comments