Skip to content

Commit 43021be

Browse files
committed
Clean up.
1 parent ac04222 commit 43021be

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/pages/session/[slug].astro

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,10 @@ const nextSessionsOrdered = sameRoomNextSession
235235
</Layout>
236236

237237
<script is:inline define:vars={{ slug }}>
238-
// Check if the current URL contains the entry ID
239238
const currentUrl = window.location.pathname;
240239
const expectedUrl = `/session/${slug}`;
241240

242-
// If the URL doesn't match the expected URL with the entry ID, replace it
243241
if (currentUrl !== expectedUrl) {
244-
// Use history.replaceState to update the URL without refreshing the page
245242
window.history.replaceState({}, '', expectedUrl);
246-
console.log(`URL updated to match entry ID: ${expectedUrl}`);
247243
}
248244
</script>

0 commit comments

Comments
 (0)