Claude commited on
Commit
67b2647
·
1 Parent(s): f2c197f

Fix static file paths in HTML template

Browse files

Replace url_for() with direct paths for static assets (CSS, JS, favicon).
The url_for with leading slashes in path parameter was causing issues.

Files changed (1) hide show
  1. app/templates/index.html +6 -6
app/templates/index.html CHANGED
@@ -6,13 +6,13 @@
6
  <title>SOCAR Historical Documents AI System</title>
7
 
8
  <!-- Favicon -->
9
- <link rel="icon" type="image/x-icon" href="{{ url_for('static', path='/favicon/favicon.ico') }}">
10
- <link rel="apple-touch-icon" sizes="180x180" href="{{ url_for('static', path='/favicon/apple-touch-icon.png') }}">
11
- <link rel="icon" type="image/png" sizes="192x192" href="{{ url_for('static', path='/favicon/icon-192.png') }}">
12
- <link rel="icon" type="image/png" sizes="512x512" href="{{ url_for('static', path='/favicon/icon-512.png') }}">
13
 
14
  <!-- Stylesheet -->
15
- <link rel="stylesheet" href="{{ url_for('static', path='/css/style.css') }}">
16
  </head>
17
  <body>
18
  <div class="container">
@@ -143,6 +143,6 @@
143
  </footer>
144
  </div>
145
 
146
- <script src="{{ url_for('static', path='/js/app.js') }}"></script>
147
  </body>
148
  </html>
 
6
  <title>SOCAR Historical Documents AI System</title>
7
 
8
  <!-- Favicon -->
9
+ <link rel="icon" type="image/x-icon" href="/static/favicon/favicon.ico">
10
+ <link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">
11
+ <link rel="icon" type="image/png" sizes="192x192" href="/static/favicon/icon-192.png">
12
+ <link rel="icon" type="image/png" sizes="512x512" href="/static/favicon/icon-512.png">
13
 
14
  <!-- Stylesheet -->
15
+ <link rel="stylesheet" href="/static/css/style.css">
16
  </head>
17
  <body>
18
  <div class="container">
 
143
  </footer>
144
  </div>
145
 
146
+ <script src="/static/js/app.js"></script>
147
  </body>
148
  </html>