From: Karl O. Pinc Date: Fri, 4 Oct 2024 22:20:57 +0000 (-0500) Subject: Use static paths instead of static URLs to ease reverse-proxying X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=f13f68c9b1f1f057391bee918b86f82cd9c815ae;p=pgwui_sql Use static paths instead of static URLs to ease reverse-proxying --- diff --git a/src/pgwui_sql/templates/sql.mak b/src/pgwui_sql/templates/sql.mak index f6d8ba6..ae5020e 100644 --- a/src/pgwui_sql/templates/sql.mak +++ b/src/pgwui_sql/templates/sql.mak @@ -48,11 +48,11 @@ return '${request.route_path("pgwui_sql_edit")|n}'; } function pgwuiSqlShowWhitespaceURL() { - return '${request.static_url( + return '${request.static_path( "pgwui_sql:static/show_whitespace.css")}'; } function pgwuiSqlBackgroundRulesURL() { - return '${request.static_url( + return '${request.static_path( "pgwui_sql:static/background_rules.css")}'; } // Set window name so that the sql_edit window can vary the target @@ -71,10 +71,10 @@ <%block name="stylesheet_links"> ${parent.stylesheet_links()} @@ -213,5 +213,5 @@ ${render_results()} ${self.main_form(tab_index)} diff --git a/src/pgwui_sql/templates/sql_base.mak b/src/pgwui_sql/templates/sql_base.mak index 8387046..082ad11 100644 --- a/src/pgwui_sql/templates/sql_base.mak +++ b/src/pgwui_sql/templates/sql_base.mak @@ -53,7 +53,7 @@ <%block name="stylesheet_links"> ${parent.stylesheet_links()} diff --git a/src/pgwui_sql/templates/sql_edit.mak b/src/pgwui_sql/templates/sql_edit.mak index c1879e5..a95fcec 100644 --- a/src/pgwui_sql/templates/sql_edit.mak +++ b/src/pgwui_sql/templates/sql_edit.mak @@ -311,5 +311,5 @@ % endif