Submit button on host form redirects to invalid page
And also found upstream in https://github.com/theforeman/foreman/pull/9047#issuecomment-1039303156
Description of problem:
- Clicking the submit option on the Host Edit page reverts to an invalid host page.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Register a host to the Satellite
2. Access the client on the UI
Satellite WebUI: Hosts --> All Hosts --> Select the Host --> Edit
3. Make any change in the page and click Submit or simply click Submit button
- The action reverts to any invalid host page.
- The domain seems to be added to the hostname of the host again.
- The URL is generated as such.
- The submit action should revert back to the host page successfully.