- Issue created by @gennadiy
- Status changed to Closed: works as designed
over 1 year ago 5:22pm 11 July 2023 - 🇨🇦Canada gennadiy
Used the code inside page.tpl.php to accomplish it, thanks:
// if ?view=clean is in referrer's URL redirect to the stripped template if (!empty($_SERVER['HTTP_REFERER'])) { $parts = parse_url($_SERVER['HTTP_REFERER']); parse_str($parts['query'], $query); if ($query['view'] === 'clean') { $goto_url='https://'.$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI]; drupal_goto($goto_url, array('query' => array('view' => 'clean'))); } }