When i try open login link, it always add referer/... to link login. Why is it happen? and how can i remove it? example: http://m222sample4.com/customer/account/login/referer/aHR0cDovL20yMjJzYW1wbGU0LmNvbS9jdXN0b21lci9hY2NvdW50L2xvZ2luLw%2C%2C/

  • why do you want to remove it?
    – Piyush
    Feb 1, 2018 at 9:58
  • 2
    My customer want remove it. Feb 1, 2018 at 10:06
  • @Piyush because that pages is indexed by google, same page but with different referer. And that will give many duplicates of the same page indexed.
    – electroid
    Feb 18, 2020 at 6:52
  • @electroid too late for you but not for others: the login url should not be indexed. You should use the robots.txt to blacklist this url. Jun 3, 2023 at 17:13

3 Answers 3


This is a feature provided by Magento. It is used to redirect a user back to the page where he tried to login to resume his navigation. If a user is on a category page and clicks on login link, it will add category page as referrer in URL and will redirect the user back to the same category page after successful login.

If you want to remove this feature, there is a configuration in admin panel. Go to

Stores > Configurations > Customers > Customer Configuration > Login Options

Set Redirect Customer to Account Dashboard after Logging in to Yes and you will not see referrer in the URL anymore. But this will always redirect a user to customer dashboard after login.

  • It works. Thank you! Nov 1, 2019 at 2:47

Referer Param has encoded url as value, the url from which customer was transferred to login page is added as referer, so after login customer can be redirected to the same page.




Please set 'Redirect Customer to Account Dashboard after Logging in' option as YES

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.