MCPcopy Create free account
hub / github.com/error311/FileRise / buildShareUrl

Function buildShareUrl

public/js/sharedDropView.js:179–185  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

177 }
178
179 function buildShareUrl(path) {
180 const urlParams = new URLSearchParams(window.location.search || '');
181 const pass = urlParams.get('pass') || '';
182 const passParam = pass ? '&pass=' + encodeURIComponent(pass) : '';
183 const p = path ? '&path=' + encodeURIComponent(path) : '';
184 return withBasePath('/api/folder/shareFolder.php?token=' + encodeURIComponent(token) + passParam + p);
185 }
186
187 function renderBreadcrumbs() {
188 if (!breadcrumbsEl) return;

Callers 1

renderBreadcrumbsFunction · 0.70

Calls 2

withBasePathFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected