Wrong FQDN, domain name appears twice

Problem: Edit host, “Puppet ENC” tab, submit , return “No host found” page .
page contents: " No host found
The host debian1107.test.my.test.my does not exist or there are access permissions needed. Please contact your administrator if this issue continues."

hostname is debian1107.test.my, not “debian1107.test.my.test.my” .

I followed the instructions in “Quickstart,2.2 Puppet Management,Using the Puppet module” step by step.
url: https://theforeman.org/manuals/3.6/index.html#2.1Installation

Expected outcome: no error
Foreman and Proxy versions : 3.6.1
foreman_puppet: 5.1.0
OS: Linux debian1107 5.10.0-23-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) x86_64 GNU/Linux
install method: https://theforeman.org/manuals/3.6/index.html#2.1Installation select “Debian 11 (Bullseye)”, no error occurred .

Hey @userabc,

Unfortunatelly this is quite known bug tracked as Bug #36265: Redirect when editing a host is not reliable - Foreman. The fix will be available in Foreman 3.7, but I’ll also suggest it to be available in 3.6.2.

Thank you for your reply, I couldn’t agree with you more, the sooner this bug is fixed the better, as it is very easy to encounter.