WP_List_Table $current_url points to my actual host rather than the reverse proxy host

Đã có trọn bộ đề thi thử THPT Quốc Gia 2022 các môn: vip.dethihsg247.com
QUẢNG CÁO: Đổi thẻ cào thành tiền mặt min rút 10k tại đây

I am a novice on the wordpress framework and I am currently using wordpress behind a reverse proxy. Like follows.

Reverse Proxy Domain = https://example.com
My actual Domain = https://example-herokuapp.com

Issue :

Reason :

This seems to be because of the $current_url attribute wp_list_table which is called from wp-admin/edit.php

The current url is defined as follows

I came across a very old bug/issue from wordpress https://core.trac.wordpress.org/ticket/16858 , which seems to address this very same problem.

It essentially uses a self_admin_url to overcome this issue.

The above mentioned patch (https://core.trac.wordpress.org/attachment/ticket/16858/16858.patch) is not available on 5.5.3 (LTS).However the self_admin_url method is available under wp-admin/includes.

Question :

How do i change this $current_url to use self_admin_url().? Should i override $_Server[‘HTTP_HOST’] in wp-config ? or what is the best practise to change things like this .

Or is there a better way to ensure my admin links point to my proxy host rather than my actual host ?

Thanks in advance.

Xin chào các bạn và quý Thầy Cô. Hãy nhập từ khóa mình muốn vào ô tìm kiếm trên Website để tìm kiếm mọi thứ hoặc trên google các bạn hãy nhập từ khóa + dethihsg247.com để tìm kiếm các bài viết của chúng tôi nhé.
  • Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
  • Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
  • Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.

Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com