From 4d886b7d5802509527b1ec39453ebb064586ff3b Mon Sep 17 00:00:00 2001 From: Fabian Steeg Date: Wed, 15 Dec 2021 12:21:58 +0100 Subject: [PATCH] Remove hashbang when getting simple IDs (#445) --- gatsby/lobid/src/components/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatsby/lobid/src/components/helpers.js b/gatsby/lobid/src/components/helpers.js index 1a39388..605a9d2 100644 --- a/gatsby/lobid/src/components/helpers.js +++ b/gatsby/lobid/src/components/helpers.js @@ -1,7 +1,7 @@ import React from "react"; export function simpleId(url) { - return url.slice(url.lastIndexOf("/") + 1); + return url.slice(url.lastIndexOf("/") + 1).replace('#!', ''); } export function stripLobidOrg(url) {