1

I want to save customer navigation url using <event name "controller _front_send_response_before">.`

But,I can get customer current url and also this http://localhost/magento2/customer/section/load/?sections=messages&update_section_id=true&_=1513233876606 url.

But I want to get only current url.How to avoid that url.

What can I do?

If anyone knows please explain me?

7
  • Can You provide more details @Mahalakshmi M Dec 14, 2017 at 8:47
  • which code you are using now? Dec 14, 2017 at 8:49
  • use Magento\Framework\UrlInterface; $currentUrl = $this->_urlInterface->getCurrentUrl();
    – Mahi M
    Dec 14, 2017 at 8:50
  • just tried with $block->getCurrentUrl() in template file Dec 14, 2017 at 9:04
  • I don't use template file.only use model and observer files
    – Mahi M
    Dec 14, 2017 at 9:12

0

Browse other questions tagged or ask your own question.