Skip to content

When the store URL is set to https://www.store.com image URLs are created instead with https://localhost:5001 #7813

@chrishoogenboom

Description

@chrishoogenboom

When the store URL is set to https://www.store.com image URLs are created instead with https://localhost:5001.

In my case this occurred randomly when nopcommerce was behind nginx reverse proxy and had https port enabled and there was a container healthcheck service that periodically probed https://localhost:5001. That in turn seems to "teach" the nopcommerce function that forms image URLS to ignore the store URL and instead use https://localhost:5001. Admittedly a bad configuration, and removing the HTTPS port and disabling the healtchcheck solved the problem, but my contention is this is a bug and there are many posts going back 10 years of various battles with this problem. I contend that the store URL, if set, should be used to form image URLs, always, without exception. If there is a reason for the current behavior (IS there a reason?!) then add a setting describing it and allowing users to enable/disable it.

Please see this forum post for more background.

Thanks!

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions