taler-merchant-demos

Python-based Frontends for the Demonstration Web site
Log | Files | Refs | Submodules | README | LICENSE

commit 1898b550021a3f0ff97691e2cdf5b0815691fa77
parent d7144e0ee1e991d1ed8019552235d89517a10715
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed,  7 Sep 2022 15:10:43 +0200

-try with url_for

Diffstat:
Mtalermerchantdemos/blog/blog.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/talermerchantdemos/blog/blog.py b/talermerchantdemos/blog/blog.py @@ -394,12 +394,12 @@ def article(article_name, lang=None, data=None): response.set_cookie( "order_id", ai, - path=urllib.parse.quote(url_for ('index') + + f"essay/{article_name}")) + path=urllib.parse.quote(url_for ('index') + f"essay/{article_name}")) ) response.set_cookie( "order_id", ai, - path=urllib.parse.quote(url_for ('index') + + f"{lang}/essay/{article_name}")) + path=urllib.parse.quote(url_for ('index') + f"{lang}/essay/{article_name}")) ) return response