summaryrefslogtreecommitdiff
path: root/talermerchantdemos/httpcommon/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'talermerchantdemos/httpcommon/__init__.py')
-rw-r--r--talermerchantdemos/httpcommon/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/talermerchantdemos/httpcommon/__init__.py b/talermerchantdemos/httpcommon/__init__.py
index 0584cba..0b76111 100644
--- a/talermerchantdemos/httpcommon/__init__.py
+++ b/talermerchantdemos/httpcommon/__init__.py
@@ -1,7 +1,7 @@
import flask
import requests
from urllib.parse import urljoin
-from flask import request
+from flask import request, url_for
from datetime import datetime
import time
from flask_babel import gettext
@@ -165,7 +165,7 @@ all_languages = {
# Make the environment available into templates.
#
# @return the environment-reading function
-def make_utility_processor(pagename):
+def make_utility_processor(pagename,base_url):
def utility_processor():
def getactive():
return pagename
@@ -195,7 +195,7 @@ def make_utility_processor(pagename):
getlang=getlang,
all_languages=all_languages,
static=static,
- script_name=request.environ.get("SCRIPT_NAME", ""),
+ script_name=base_url,
)
return utility_processor