export const map_store = writable();
export const results_store = writable();
export const last_api_request_url_store = writable();
+export const error_store = writable();
export const page = writable();
/**
if (param_str) {
param_str = '?' + param_str;
}
- window.history.pushState([], '', pagename + '.html' + param_str);
+ let new_url = pagename + '.html' + param_str;
+
+ if (window.location.protocol.match(/^http/)) {
+ window.history.pushState([], '', new_url);
+ } else {
+ window.location.href = new_url;
+ }
}
page.set({ tab: pagename, params: params });
+ last_api_request_url_store.set(null);
+ error_store.set(null);
}