fix(routing): Switch from iron:router to clinical:router so we respect ROOT_URL (#115)
This commit is contained in:
1 parent
ebe0a40f3e
commit
03d0798459
30 files changed
+54
-50
No files matched your search
@@ -30,7 +30,7 @@ async function makeRequest(url, options) {
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
// TODO: Kept getting weird build errors from RegExp
|
||||
const isAbsolute = parsed.href.indexOf('http://') === 0 || parsed.href.indexOf('https://');
|
||||
const isAbsolute = parsed.href.indexOf('http://') === 0 || parsed.href.indexOf('https://') === 0;
|
||||
|
||||
let url = parsed.href;
|
||||
|
||||
@@ -38,6 +38,8 @@ async function makeRequest(url, options) {
|
||||
url = Meteor.absoluteUrl(parsed.href);
|
||||
}
|
||||
|
||||
console.warn(url);
|
||||
|
||||
fetch(url, requestOpt).then((response) => {
|
||||
if (response.status >= 400) {
|
||||
reject(new Error(response.status));
|
||||
|
||||
Reference in new issue
Block a user