[pgAdmin4][Patch]: Handle WSGI Alias while generating URL for endpoints.js

From: Murtuza Zabuawala <murtuza(dot)zabuawala(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [pgAdmin4][Patch]: Handle WSGI Alias while generating URL for endpoints.js
Date: 2017-07-25 08:48:58
Message-ID: CAKKotZSZEW0+wvS13=yx_aSUgLVLt+i4Nc=au8S8KYmKNVix_A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,

PFA patch to fix the issue where user were not able to run pgAdmin4 under
WSGI Alias (example: localhost/pgadmin).
RM#2563

*Issue:*
- Removed hard coded url paths from base.html
- URL's are not generated with WSGI alias when we use
current_app.url_map.iter_rules() function to fetch all the endpoints and
their respective url's.

Please review.

--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment Content-Type Size
RM_2563.diff text/plain 4.0 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2017-07-25 09:15:21 pgAdmin 4 commit: Fix paths under non-standard virtual directories. Fix
Previous Message Dave Page 2017-07-25 07:59:37 Re: [pgAdmin4][Patch]: Allow user to cancel long running queries from dashboard