potato-pzy commited on
Commit
e07fd90
·
1 Parent(s): 8ad04f6

fix: preserve query parameters during dashboard navigation to fix 404 in iframe

Browse files
templates/dataflow.html CHANGED
@@ -134,8 +134,8 @@ body{font-family:var(--sans);background:var(--bg);color:var(--txt);height:100vh;
134
  </div>
135
  </div>
136
  <div class="hdr-r">
137
- <a class="nav-link" href="/sidecar">← Chat</a>
138
- <a class="nav-link" href="/genai-monitoring">SIEM</a>
139
  <div class="dot" id="conn-dot" title="Connecting..."></div>
140
  </div>
141
  </header>
 
134
  </div>
135
  </div>
136
  <div class="hdr-r">
137
+ <a class="nav-link" href="#" onclick="event.preventDefault(); window.location.href='/sidecar'+window.location.search;">← Chat</a>
138
+ <a class="nav-link" href="#" onclick="event.preventDefault(); window.location.href='/genai-monitoring'+window.location.search;">SIEM</a>
139
  <div class="dot" id="conn-dot" title="Connecting..."></div>
140
  </div>
141
  </header>
templates/genai.html CHANGED
@@ -34,7 +34,7 @@
34
  <div>
35
  <h1 style="font-size: 1.5rem; margin: 0;">Risknox <span style="text-decoration: underline;">GenAI Shield V2</span></h1>
36
  </div>
37
- <a href="/genai-monitoring" class="btn secondary" style="font-size: 0.75rem;">Dashboard →</a>
38
  </div>
39
  </header>
40
  <div class="chat-area" id="chat-area"></div>
 
34
  <div>
35
  <h1 style="font-size: 1.5rem; margin: 0;">Risknox <span style="text-decoration: underline;">GenAI Shield V2</span></h1>
36
  </div>
37
+ <a href="#" onclick="event.preventDefault(); window.location.href='/genai-monitoring'+window.location.search;" class="btn secondary" style="font-size: 0.75rem;">Dashboard →</a>
38
  </div>
39
  </header>
40
  <div class="chat-area" id="chat-area"></div>
templates/genai_monitoring.html CHANGED
@@ -31,7 +31,7 @@
31
  <h1 style="font-size: 1.5rem; margin: 0;">GenAI SIEM V2</h1>
32
  <p class="mono" style="text-transform: uppercase; color: var(--muted);">Prompt Guard 2 · Live Adversarial Monitor · {{ model }}</p>
33
  </div>
34
- <a href="/" class="btn secondary" style="font-size: 0.75rem;">← Back to Chat</a>
35
  </div>
36
  </header>
37
 
 
31
  <h1 style="font-size: 1.5rem; margin: 0;">GenAI SIEM V2</h1>
32
  <p class="mono" style="text-transform: uppercase; color: var(--muted);">Prompt Guard 2 · Live Adversarial Monitor · {{ model }}</p>
33
  </div>
34
+ <a href="#" onclick="event.preventDefault(); window.location.href='/'+window.location.search;" class="btn secondary" style="font-size: 0.75rem;">← Back to Chat</a>
35
  </div>
36
  </header>
37