(url, keep)
| 117 | } |
| 118 | |
| 119 | function pageId(url, keep) { |
| 120 | var normalised = normalise(url), |
| 121 | source = normalised.replace(new RegExp("\\" + params.query_delimiter + ".*"), ""), |
| 122 | paramString = normalised.replace(new RegExp(".*\\" + params.query_delimiter), ""), |
| 123 | q_params = paramString ? extractQuery(paramString) : {}, |
| 124 | outParams = parameterString(q_params, keep), |
| 125 | page_id = source + outParams; |
| 126 | |
| 127 | return encodeURIComponent(page_id); |
| 128 | } |
| 129 | |
| 130 | function currentPageId(keep) { |
| 131 | return pageId(params.current_page_url, keep); |
no test coverage detected