You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/store/index.js
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -712,7 +712,14 @@ function getStore(config, router) {
712
712
awaitcx.dispatch('auth/requestLogin');
713
713
},
714
714
asyncload(cx,args){
715
-
let{ url, show, force, noRetry, omitApi }=args;
715
+
let{
716
+
url,// URL to load
717
+
show,// Show the page when loading is finished, otherwise it's likely loaded in the background for completing specific parts of the page
718
+
force,// Force reloading the data, omit the cache
719
+
noRetry,// Don't retry on authentication errors
720
+
omitApi,// Don't load API collections or API items yet
721
+
isRoot // Is a request for the root catalog initiated by this function, avoiding endless loops in some mis-configured instances (see https://github.com/radiantearth/stac-browser/issues/580)
722
+
}=args;
716
723
717
724
constpath=cx.getters.toBrowserPath(url);
718
725
url=Utils.toAbsolute(url,cx.state.url);
@@ -801,7 +808,7 @@ function getStore(config, router) {
801
808
}
802
809
803
810
// Load the root catalog data if not available (e.g. after page refresh or external access)
804
-
if(!cx.getters.root){
811
+
if(!cx.getters.root&&!isRoot){
805
812
letcatalogUrl=cx.state.catalogUrl;
806
813
if(!catalogUrl){
807
814
constroot=data.getLinkWithRel('root');
@@ -811,7 +818,7 @@ function getStore(config, router) {
0 commit comments