View original article behind IIS Reverse Proxy

Describe the problem you’re having:

Right-clicking on an article preview and choosing View original article does not go to the same URL as clicking on the article title (which also matches the URL given with Display article URL).

If possible include steps to reproduce the problem:

Right click on article title, choose View original article.

tt-rss version (including git commit id):

tt-rss git 6fb5f17 and c9a5e5a

Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:

Ubuntu 16.04.3 LTS, PHP 7.0, PostgreSQL 9.5 running as VirtualBox guest. Host is Windows Server 2012 R2 Essentials. The unsupported part is I am accessing tt-rss behind an IIS Reverse Proxy.

Additional information

All three work methods give the correct URL when directly connecting to the Ubuntu box (completely avoiding the reverse proxy). This behavior happens only when accessing through the reverse proxy. The inbound URL rewrite rule replaces the public-facing domain name with the internal host name so I don’t believe the issue is there and it also happens with the outbound URL rewrite rule to restore the public-facing domain name disabled.

Example

Left-clicking on the article title will correctly take me to https://www.reddit.com/r/PleX/comments/82kwpr/shield_or_personal_pc_as_server/ and Displaying article URL will give the same URL.

View original article attempts to visit
https://<public.domain.name>/r/PleX/comments/82kwpr/shield_or_personal_pc_as_server/

Not a major deal, but I do find it interesting 2 of the 3 options still get the URL right and lends me to think the View original article option is doing some different behavior than the other options.

I got this resolved (on accident) by adding the Ubuntu box as a server farm in IIS and Application Request Routing. It doesn’t make sense as to what this extra step did (I don’t have any rules to trigger it’s use) but it works.