Something like `$this->getView()->serverUrl(true) . (count($_GET) ? "&" : "?") . "q=$id";` would be a bit less redundant.