Use client-side url_for in the sql editor and data grid modules.
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=cfb4b115732f353bc0bf723d87968ed250af063f
Author: Surinder Kumar <surinder(dot)kumar(at)enterprisedb(dot)com>
Modified Files
--------------
web/pgadmin/tools/datagrid/__init__.py | 34 ++++--
.../datagrid/templates/datagrid/js/datagrid.js | 118 ++++++++++++++------
web/pgadmin/tools/sqleditor/__init__.py | 122 +++++++++++++++++----
.../sqleditor/templates/sqleditor/js/sqleditor.js | 77 ++++++-------
4 files changed, 251 insertions(+), 100 deletions(-)