Spaces:
Build error
Build error
fix
Browse files
backend/functions/src/cloud-functions/crawler.ts
CHANGED
|
@@ -776,7 +776,7 @@ ${suffixMixins.length ? `\n${suffixMixins.join('\n\n')}\n` : ''}`;
|
|
| 776 |
|
| 777 |
getUrlDigest(urlToCrawl: URL) {
|
| 778 |
const normalizedURL = new URL(urlToCrawl);
|
| 779 |
-
if (!normalizedURL.hash.startsWith('/')) {
|
| 780 |
normalizedURL.hash = '';
|
| 781 |
}
|
| 782 |
const normalizedUrl = normalizedURL.toString().toLowerCase();
|
|
|
|
| 776 |
|
| 777 |
getUrlDigest(urlToCrawl: URL) {
|
| 778 |
const normalizedURL = new URL(urlToCrawl);
|
| 779 |
+
if (!normalizedURL.hash.startsWith('#/')) {
|
| 780 |
normalizedURL.hash = '';
|
| 781 |
}
|
| 782 |
const normalizedUrl = normalizedURL.toString().toLowerCase();
|