Magento 1.9 – Redirection to a custom hash with hash

I'm currently working on a feedback system on my product view. The problem I am trying to solve is to redirect the user to the comments section of the product view after logging in.

I read that I can include a / referer / in the URL of the login page (for example, / client / account / login / referrer / path / to / product # comments) and that would redirect me to the URL path I want. I have tried this and it does not work.

Someone knows how I can do it? Any help is greatly appreciated.