home_url() should include slash when adding query args. Props meloniq
Use get_edit_post_link() for product edit link. Props meloniq