ram);
                                    } else {
                                        baseWithSearch += "&" + newParam;
                                    }
                                } else {
                                    baseWithSearch += "?" + newParam;
                                }
                            }
                        }

                        if (hash) {
                            url = baseWithSearch + '#' + hash;
                        } else {
               