Incorrect Redirect from Environments and Puppet Classes
I am running foreman in a subdir, so the URL is https://hostname/foreman. Seems to work fine except for the "Import puppet classes and environments" button on the Environments and Puppet Classes pages. It looks like it should redirect back to itself (e.g. https://hostname/foreman/environments), but the redirect is losing the /foreman from the path (https://hostname/environments), and I get a 404 not found. Hitting back button makes it work.
From the log...
Processing EnvironmentsController#import_environments (for IP_ADDR at 2012-01-20 12:43:46) [GET]
Redirected to https://puppet.dom.com/environments
Completed in 8ms (DB: 0) | 302 Found [https://puppet.dom.com/foreman/environments/import_environments]
#1 Updated by Ohad Levy over 10 years ago
- Target version set to 1.0
#2 Updated by Ivan Necas over 10 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset b596ba5980d55ff14cb2d245e210c014756424b3.
fixes #1463 - let Foreman run on a sub path
e.g. for it being available on http://localhost:3000/foreman you run: