1
0
Эх сурвалжийг харах

update from justpy fork: cleanup and fix <base> tag

Rodja Trappe 3 жил өмнө
parent
commit
f0541b39a3

+ 2 - 2
nicegui/static/templates/quasar.html

@@ -1,8 +1,8 @@
 <!DOCTYPE html>
 <html>
 <head>
-    <base href="http://{{request.headers.get('host')}}"/>
-
+    <base href="http://{{request.headers.get('host') + request.headers.get('X-Forwarded-Prefix','') }}/"/>
+    
     {% include 'favicon.html' %}
 
     {% if options.tailwind %}

+ 1 - 1
nicegui/static/templates/tailwind.html

@@ -3,7 +3,7 @@
     <!DOCTYPE html>
     <html>
     <head>
-        <base href="http://{{request.headers.get('host')}}{{ request.headers.get('X-Forwarded-Prefix','') }}/"/>
+        <base href="http://{{request.headers.get('host') + request.headers.get('X-Forwarded-Prefix','') }}/"/>
 
         {% include 'favicon.html' %}
 

+ 1 - 1
nicegui/static/templates/tailwindui.html

@@ -3,7 +3,7 @@
     <!DOCTYPE html>
     <html>
     <head>
-        <base href="http://{{request.headers.get('host')}}{{ request.headers.get('X-Forwarded-Prefix','') }}/"/>
+        <base href="http://{{request.headers.get('host') + request.headers.get('X-Forwarded-Prefix','') }}/"/>
 
         {% include 'favicon.html' %}