coderuday21 commited on
Commit
7496827
·
1 Parent(s): 60a5684

UX: always land on detection-type menu after login

Browse files
Files changed (2) hide show
  1. static/js/app.js +0 -8
  2. templates/index.html +1 -1
static/js/app.js CHANGED
@@ -118,14 +118,6 @@ function handlePostAuthNavigation() {
118
  const preferred = getDetectionTypeFromPath();
119
  if (preferred) applyDetectionTypeToUI(preferred);
120
  showView('detection-type');
121
-
122
- // If user already chose a URL (/detect/change or /detect/landslide),
123
- // then auto-redirect after the menu is shown.
124
- if (preferred) {
125
- setTimeout(() => {
126
- navigateToDetectionType(preferred, true);
127
- }, 150);
128
- }
129
  }
130
 
131
  // ---- Forgot password ----
 
118
  const preferred = getDetectionTypeFromPath();
119
  if (preferred) applyDetectionTypeToUI(preferred);
120
  showView('detection-type');
 
 
 
 
 
 
 
 
121
  }
122
 
123
  // ---- Forgot password ----
templates/index.html CHANGED
@@ -392,6 +392,6 @@
392
  </div>
393
  </div>
394
 
395
- <script src="/static/js/app.js?v=29"></script>
396
  </body>
397
  </html>
 
392
  </div>
393
  </div>
394
 
395
+ <script src="/static/js/app.js?v=30"></script>
396
  </body>
397
  </html>