From ed2c5bc75ffbf484151b153990ece78c6e498b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6khan=20Bulut?= Date: Fri, 25 Oct 2024 06:52:31 +0300 Subject: [PATCH] fix: correct hash extraction logic in getHashFromURL function (#108) --- client/lib/getHashFromURL.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lib/getHashFromURL.js b/client/lib/getHashFromURL.js index 8fea2ce5..89f1d452 100644 --- a/client/lib/getHashFromURL.js +++ b/client/lib/getHashFromURL.js @@ -1,7 +1,7 @@ function getHashFromURL(url, type) { const split = url.split(`/${type}/`); - return split[1].split('.')[0]; + return split[1].split('/')[1].split('.')[0]; } module.exports = getHashFromURL; \ No newline at end of file