diff --git a/apps/web/CHANGELOG.md b/apps/web/CHANGELOG.md index 0e4bcf92e..6b36ce28c 100644 --- a/apps/web/CHANGELOG.md +++ b/apps/web/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## [5.11.4] - 2024-01-14 + +- Bug causing blank posts. It would happen which clicking on a notification about a comment on a post, then closing the post. This wouldn't clear out the /comments part of the URL. So then clicking on the next post would create a weird URL with /comments stuck in the middle + +### Fixed + ## [5.11.3] - 2024-01-12 ### Fixed diff --git a/apps/web/package.json b/apps/web/package.json index 823c3e2f0..4033a8901 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -1,7 +1,7 @@ { "name": "web", "description": "Hylo Frontend", - "version": "5.11.3", + "version": "5.11.4", "private": true, "license": "Apache-2.0", "author": "Hylo ", diff --git a/apps/web/src/util/navigation.js b/apps/web/src/util/navigation.js index 9f23b9e5b..d90912fac 100644 --- a/apps/web/src/util/navigation.js +++ b/apps/web/src/util/navigation.js @@ -181,7 +181,7 @@ export function addQuerystringToPath (path, querystringParams) { } export function removePostFromUrl (url) { - const matchForReplaceRegex = `/post/${POST_ID_MATCH}` + const matchForReplaceRegex = `/post/${POST_ID_MATCH}(/.*)?` return url.replace(new RegExp(matchForReplaceRegex), '') }