*/
function showSearchPath() {
- fetch('${request.route_path("pgwui_sql_db_search_path")|n}')
+ fetch(pgwuiSqlDbSearchPathRoute())
.then((response) => {
if (!response.ok) {
window.alert('Problem obtaining the search_path');
<%inherit file="${sql_base_mak}" />
+<script>
+ // Functions for delivering "static" content that comes from templating.
+ function pgwuiSqlDbSearchPathRoute() {
+ return '${request.route_path("pgwui_sql_db_search_path")|n}';
+ }
+</script>
+
<%block name="page_heading">
SQL Entry Window
</%block>