I want to get data by the current URL, so I have set a post value. But it is set for all pages, and I want to unset it if another URL opens. How can I do it?
Please see my code:
if ($currenturl = 'https://example.com/delhi.html') {
$this->request->setPostValue('location', '289');
}