Bug #1920
Template URLs should not be based on the browser address bar
Description
Templates are generated using url_for() which causes the templates to get the base url of the foreman server from the user's web browser address. This is incorrect if you're installing Foreman locally and accessing http://localhost:3000/
We should instead use the Settings[:foreman_url] value to construct the URLs. Patch incoming.
Associated revisions
Refs #1920 : Fix failing tests for Setting[:foreman_url] Ensure plain 'http' protocol is used in templates Add a test to ensure http is used when https is in @request
History
#1
Updated by Anonymous almost 10 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset f343e91a2b65c1cf94d057359dd100f3a10b0cc7.
Fixes #1920 - Template URLs should not be based on the browser address bar