~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
Fix template references after removing research.serve_static route
LearningCircuit427d7f514439
diff --git a/src/local_deep_research/web/templates/auth/login.html b/src/local_deep_research/web/templates/auth/login.htmlindex 5c145edb55..be31b3bcda 100644--- a/src/local_deep_research/web/templates/auth/login.html+++ b/src/local_deep_research/web/templates/auth/login.html@@ -12,7 +12,7 @@{{ vite_asset('js/app.js') }}<!-- Keep local styles -->- <link rel="stylesheet" href="{{ url_for('research.serve_static', path='css/styles.css') }}">+ <link rel="stylesheet" href="/static/css/styles.css"><style>/* Override main layout for auth pages */body {diff --git a/src/local_deep_research/web/templates/auth/register.html b/src/local_deep_research/web/templates/auth/register.htmlindex 63261e364d..5aea9cfdae 100644--- a/src/local_deep_research/web/templates/auth/register.html+++ b/src/local_deep_research/web/templates/auth/register.html@@ -12,7 +12,7 @@{{ vite_asset('js/app.js') }}<!-- Keep local styles -->- <link rel="stylesheet" href="{{ url_for('research.serve_static', path='css/styles.css') }}">+ <link rel="stylesheet" href="/static/css/styles.css"><style>/* Override main layout for auth pages */body {diff --git a/src/local_deep_research/web/templates/base.html b/src/local_deep_research/web/templates/base.htmlindex 186ed1b397..af9f1c8609 100644--- a/src/local_deep_research/web/templates/base.html+++ b/src/local_deep_research/web/templates/base.html@@ -12,7 +12,7 @@{{ vite_asset('js/app.js') }}<!-- Keep local styles that aren't in npm packages -->- <link rel="stylesheet" href="{{ url_for('research.serve_static', path='css/styles.css') }}">+ <link rel="stylesheet" href="/static/css/styles.css">{% block extra_head %}{% endblock %}</head><body>@@ -55,7 +55,7 @@<!-- Scripts --><!-- URL Configuration (must load first) -->- <script src="{{ url_for('research.serve_static', path='js/config/urls.js') }}"></script>+ <script src="/static/js/config/urls.js"></script><!-- Logo click handler --><script>@@ -72,14 +72,14 @@<!-- All vendor libraries are now loaded through Vite in the <head> section --><!-- Core JS -->- <script src="{{ url_for('research.serve_static', path='js/services/formatting.js') }}"></script>- <script src="{{ url_for('research.serve_static', path='js/services/ui.js') }}"></script>- <script src="{{ url_for('research.serve_static', path='js/services/api.js') }}"></script>- <script src="{{ url_for('research.serve_static', path='js/services/socket.js') }}"></script>- <script src="{{ url_for('research.serve_static', path='js/services/keyboard.js') }}"></script>+ <script src="/static/js/services/formatting.js"></script>+ <script src="/static/js/services/ui.js"></script>+ <script src="/static/js/services/api.js"></script>+ <script src="/static/js/services/socket.js"></script>+ <script src="/static/js/services/keyboard.js"></script><!-- Shared Components -->- <script src="{{ url_for('research.serve_static', path='js/components/logpanel.js') }}"></script>+ <script src="/static/js/components/logpanel.js"></script><!-- Page-specific Components -->{% block component_scripts %}{% endblock %}@@ -103,6 +103,6 @@}</script>- <script src="{{ url_for('research.serve_static', path='js/components/settings_sync.js') }}"></script>+ <script src="/static/js/components/settings_sync.js"></script></body></html>diff --git a/src/local_deep_research/web/templates/pages/benchmark.html b/src/local_deep_research/web/templates/pages/benchmark.htmlindex 1422a7fa9b..1c4b8ccb7e 100644--- a/src/local_deep_research/web/templates/pages/benchmark.html+++ b/src/local_deep_research/web/templates/pages/benchmark.html@@ -7,7 +7,7 @@{% block extra_head %}<meta name="csrf-token" content="{{ csrf_token() }}">-<link rel="stylesheet" href="{{ url_for('research.serve_static', path='css/custom_dropdown.css') }}">+<link rel="stylesheet" href="/static/css/custom_dropdown.css"><style>.benchmark-card {width: 100%;@@ -2711,11 +2711,11 @@ function saveEvaluationSetting(key, value) {{% block page_scripts %}<!-- Load required services for progress tracking -->-<script src="{{ url_for('research.serve_static', path='js/services/audio.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/services/ui.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/services/formatting.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/services/api.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/services/socket.js') }}"></script>+<script src="/static/js/services/audio.js"></script>+<script src="/static/js/services/ui.js"></script>+<script src="/static/js/services/formatting.js"></script>+<script src="/static/js/services/api.js"></script>+<script src="/static/js/services/socket.js"></script><!-- Load custom dropdown component for evaluation model selection -->-<script src="{{ url_for('research.serve_static', path='js/components/custom_dropdown.js') }}"></script>+<script src="/static/js/components/custom_dropdown.js"></script>{% endblock %}diff --git a/src/local_deep_research/web/templates/pages/details.html b/src/local_deep_research/web/templates/pages/details.htmlindex 79fd3d4acf..5b828f2844 100644--- a/src/local_deep_research/web/templates/pages/details.html+++ b/src/local_deep_research/web/templates/pages/details.html@@ -597,5 +597,5 @@{% endblock %}{% block page_scripts %}-<script src="{{ url_for('research.serve_static', path='js/components/details.js') }}"></script>+<script src="/static/js/components/details.js"></script>{% endblock %}diff --git a/src/local_deep_research/web/templates/pages/history.html b/src/local_deep_research/web/templates/pages/history.htmlindex fd99f51751..ede7a99165 100644--- a/src/local_deep_research/web/templates/pages/history.html+++ b/src/local_deep_research/web/templates/pages/history.html@@ -6,7 +6,7 @@{% block styles %}{{ super() }}-<link rel="stylesheet" href="{{ url_for('research.serve_static', path='css/components/history.css') }}">+<link rel="stylesheet" href="/static/css/components/history.css">{% endblock %}{% block content %}@@ -43,10 +43,10 @@{% block page_scripts %}<!-- Load utilities first -->-<script src="{{ url_for('research.serve_static', path='js/services/ui.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/services/formatting.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/services/api.js') }}"></script>+<script src="/static/js/services/ui.js"></script>+<script src="/static/js/services/formatting.js"></script>+<script src="/static/js/services/api.js"></script><!-- Then load the component -->-<script src="{{ url_for('research.serve_static', path='js/components/history.js') }}"></script>+<script src="/static/js/components/history.js"></script><!-- Add Bootstrap JavaScript -->{% endblock %}diff --git a/src/local_deep_research/web/templates/pages/news-subscription-form.html b/src/local_deep_research/web/templates/pages/news-subscription-form.htmlindex c22a13fab9..03011957af 100644--- a/src/local_deep_research/web/templates/pages/news-subscription-form.html+++ b/src/local_deep_research/web/templates/pages/news-subscription-form.html@@ -4,8 +4,8 @@{% block title %}{{ 'Edit' if subscription else 'Create' }} News Subscription - LDR{% endblock %}{% block extra_head %}-<link rel="stylesheet" href="{{ url_for('research.serve_static', path='css/custom_dropdown.css') }}">-<link rel="stylesheet" href="{{ url_for('research.serve_static', path='css/news.css') }}">+<link rel="stylesheet" href="/static/css/custom_dropdown.css">+<link rel="stylesheet" href="/static/css/news.css"><style>body {background-color: #121212 !important;@@ -239,7 +239,7 @@</form></div>-<script src="{{ url_for('research.serve_static', path='js/components/custom_dropdown.js') }}"></script>+<script src="/static/js/components/custom_dropdown.js"></script><script>// Global variableslet currentProvider = '{{ subscription.model_provider if subscription else default_settings.model_provider }}';diff --git a/src/local_deep_research/web/templates/pages/news.html b/src/local_deep_research/web/templates/pages/news.htmlindex e80e36819b..45e35ab1b2 100644--- a/src/local_deep_research/web/templates/pages/news.html+++ b/src/local_deep_research/web/templates/pages/news.html@@ -5,9 +5,9 @@{% block extra_head %}<meta name="csrf-token" content="{{ csrf_token() }}">-<link rel="stylesheet" href="{{ url_for('research.serve_static', path='css/custom_dropdown.css') }}">-<link rel="stylesheet" href="{{ url_for('research.serve_static', path='css/news.css') }}">-<link rel="stylesheet" href="{{ url_for('research.serve_static', path='css/news-enhanced.css') }}">+<link rel="stylesheet" href="/static/css/custom_dropdown.css">+<link rel="stylesheet" href="/static/css/news.css">+<link rel="stylesheet" href="/static/css/news-enhanced.css"><style>/* Override Bootstrap defaults to ensure dark theme */body {@@ -333,18 +333,18 @@<!-- Add marked.js for markdown rendering --><!-- Add UI services for markdown rendering -->-<script src="{{ url_for('research.serve_static', path='js/services/ui.js') }}"></script>+<script src="/static/js/services/ui.js"></script><!-- Add custom dropdown component -->-<script src="{{ url_for('research.serve_static', path='js/components/custom_dropdown.js') }}"></script>+<script src="/static/js/components/custom_dropdown.js"></script><!-- Add news page JavaScript -->-<script src="{{ url_for('research.serve_static', path='js/pages/news.js') }}"></script>+<script src="/static/js/pages/news.js"></script><!-- Add subscription manager -->-<script src="{{ url_for('research.serve_static', path='js/components/subscription-manager.js') }}"></script>+<script src="/static/js/components/subscription-manager.js"></script><!-- Add Bootstrap JavaScript --><!-- Add design enhancements -->-<script src="{{ url_for('research.serve_static', path='js/news-enhancements.js') }}"></script>+<script src="/static/js/news-enhancements.js"></script>{% endblock %}diff --git a/src/local_deep_research/web/templates/pages/news_cleaned.html b/src/local_deep_research/web/templates/pages/news_cleaned.htmlindex 54500453b8..1300802868 100644--- a/src/local_deep_research/web/templates/pages/news_cleaned.html+++ b/src/local_deep_research/web/templates/pages/news_cleaned.html@@ -3,7 +3,7 @@{% block title %}LDR News - AI-Powered Research Feed{% endblock %}{% block extra_head %}-<link rel="stylesheet" href="{{ url_for('research.serve_static', path='css/news.css') }}">+<link rel="stylesheet" href="/static/css/news.css">{% endblock %}{% block content %}@@ -151,10 +151,10 @@<!-- Add marked.js for markdown rendering --><!-- Add UI services for markdown rendering -->-<script src="{{ url_for('research.serve_static', path='js/services/ui.js') }}"></script>+<script src="/static/js/services/ui.js"></script><!-- Add news page JavaScript -->-<script src="{{ url_for('research.serve_static', path='js/pages/news.js') }}"></script>+<script src="/static/js/pages/news.js"></script><!-- Add Bootstrap JavaScript -->{% endblock %}diff --git a/src/local_deep_research/web/templates/pages/progress.html b/src/local_deep_research/web/templates/pages/progress.htmlindex c9ab539a5a..b84dc48684 100644--- a/src/local_deep_research/web/templates/pages/progress.html+++ b/src/local_deep_research/web/templates/pages/progress.html@@ -46,12 +46,12 @@{% block page_scripts %}<!-- Load required services -->-<script src="{{ url_for('research.serve_static', path='js/services/audio.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/services/ui.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/services/formatting.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/services/api.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/services/socket.js') }}"></script>+<script src="/static/js/services/audio.js"></script>+<script src="/static/js/services/ui.js"></script>+<script src="/static/js/services/formatting.js"></script>+<script src="/static/js/services/api.js"></script>+<script src="/static/js/services/socket.js"></script><!-- Then load the component -->-<script src="{{ url_for('research.serve_static', path='js/components/progress.js') }}"></script>+<script src="/static/js/components/progress.js"></script>{% endblock %}diff --git a/src/local_deep_research/web/templates/pages/research.html b/src/local_deep_research/web/templates/pages/research.htmlindex 4923aed1d9..634c37ad03 100644--- a/src/local_deep_research/web/templates/pages/research.html+++ b/src/local_deep_research/web/templates/pages/research.html@@ -7,7 +7,7 @@{% block extra_head %}<meta name="csrf-token" content="{{ csrf_token() }}">-<link rel="stylesheet" href="{{ url_for('research.serve_static', path='css/custom_dropdown.css') }}">+<link rel="stylesheet" href="/static/css/custom_dropdown.css">{% endblock %}{% block content %}@@ -179,7 +179,7 @@{% endblock %}{% block component_scripts %}-<script src="{{ url_for('research.serve_static', path='js/components/custom_dropdown.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/components/research.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/research_form.js') }}"></script>+<script src="/static/js/components/custom_dropdown.js"></script>+<script src="/static/js/components/research.js"></script>+<script src="/static/js/research_form.js"></script>{% endblock %}diff --git a/src/local_deep_research/web/templates/pages/results.html b/src/local_deep_research/web/templates/pages/results.htmlindex e3b467b4a7..b51f548493 100644--- a/src/local_deep_research/web/templates/pages/results.html+++ b/src/local_deep_research/web/templates/pages/results.html@@ -66,18 +66,18 @@{% block page_scripts %}<!-- Bootstrap JS for modal functionality --><!-- Fallback utilities in case main services are not available -->-<script src="{{ url_for('research.serve_static', path='js/components/fallback/ui.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/components/fallback/formatting.js') }}"></script>+<script src="/static/js/components/fallback/ui.js"></script>+<script src="/static/js/components/fallback/formatting.js"></script><!-- Main services -->-<script src="{{ url_for('research.serve_static', path='js/services/ui.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/services/formatting.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/services/api.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/services/pdf.js') }}?v={{ range(1000, 9999) | random }}"></script>+<script src="/static/js/services/ui.js"></script>+<script src="/static/js/services/formatting.js"></script>+<script src="/static/js/services/api.js"></script>+<script src="/static/js/services/pdf.js?v={{ range(1000, 9999) | random }}"></script><!-- Results component -->-<script src="{{ url_for('research.serve_static', path='js/components/results.js') }}"></script>+<script src="/static/js/components/results.js"></script><!-- Follow-up Research component -->-<script src="{{ url_for('research.serve_static', path='js/followup.js') }}"></script>+<script src="/static/js/followup.js"></script>{% endblock %}diff --git a/src/local_deep_research/web/templates/pages/subscriptions.html b/src/local_deep_research/web/templates/pages/subscriptions.htmlindex 052ec93cc0..f6376e6e4f 100644--- a/src/local_deep_research/web/templates/pages/subscriptions.html+++ b/src/local_deep_research/web/templates/pages/subscriptions.html@@ -4,7 +4,7 @@{% block title %}Manage News Subscriptions - LDR{% endblock %}{% block extra_head %}-<link rel="stylesheet" href="{{ url_for('research.serve_static', path='css/subscriptions.css') }}">+<link rel="stylesheet" href="/static/css/subscriptions.css"><style>/* Override Bootstrap defaults to ensure dark theme */body {@@ -164,5 +164,5 @@{% endblock %}{% block page_scripts %}-<script src="{{ url_for('research.serve_static', path='js/pages/subscriptions.js') }}"></script>+<script src="/static/js/pages/subscriptions.js"></script>{% endblock %}diff --git a/src/local_deep_research/web/templates/settings_dashboard.html b/src/local_deep_research/web/templates/settings_dashboard.htmlindex 568f781fe6..fca9cff4ef 100644--- a/src/local_deep_research/web/templates/settings_dashboard.html+++ b/src/local_deep_research/web/templates/settings_dashboard.html@@ -8,8 +8,8 @@{% block extra_head %}<meta name="csrf-token" content="{{ csrf_token() }}">-<link rel="stylesheet" href="{{ url_for('research.serve_static', path='css/settings.css') }}">-<link rel="stylesheet" href="{{ url_for('research.serve_static', path='css/custom_dropdown.css') }}">+<link rel="stylesheet" href="/static/css/settings.css">+<link rel="stylesheet" href="/static/css/custom_dropdown.css">{% endblock %}{% block content %}@@ -99,6 +99,6 @@{% endblock %}{% block page_scripts %}-<script src="{{ url_for('research.serve_static', path='js/components/custom_dropdown.js') }}"></script>-<script src="{{ url_for('research.serve_static', path='js/components/settings.js') }}"></script>+<script src="/static/js/components/custom_dropdown.js"></script>+<script src="/static/js/components/settings.js"></script>{% endblock %}