Currently, if the site is hosted in example.com/app/ then the URL generated by flask_util.url_for doesn't not include the /app/, rather the output is /<something>. Using request.script_root in the jinja templates gives the proper URL, i.e /app/, generation of the URL json object should use the script_root to get the correct URLs.
Currently, if the site is hosted in
example.com/app/then the URL generated byflask_util.url_fordoesn't not include the /app/, rather the output is/<something>. Using request.script_root in the jinja templates gives the proper URL, i.e /app/, generation of the URL json object should use the script_root to get the correct URLs.