@mabelle
To remove the "route=" parameter from all links on OpenCart 3.0, you can follow these steps:
1 2 3 4 5 |
if (isset($this->request->get['route'])) { $route = $this->request->get['route']; } else { $route = 'common/home'; } |
1
|
$route = isset($this->request->get['_route_']) ? $this->request->get['_route_'] : 'common/home'; |
1 2 3 |
if (isset($this->request->get['route'])) { $url .= '&route=' . $this->request->get['route']; } |
1 2 3 |
if (!empty($data['_route_'])) { $url .= '/' . $data['_route_']; } |
After following these steps, the "route=" parameter should be removed from all links on your OpenCart 3.0 store.