MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / pageId

Function pageId

client/js-client/src/rlClient.js:119–128  ·  view source on GitHub ↗
(url, keep)

Source from the content-addressed store, hash-verified

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);

Callers 1

currentPageIdFunction · 0.85

Calls 3

normaliseFunction · 0.85
extractQueryFunction · 0.85
parameterStringFunction · 0.85

Tested by

no test coverage detected