🐛 Fixed url decoding issue - URLs sent in emails containing a % can now be updated(#20518)

fixes https://linear.app/tryghost/issue/ENG-447/🐛-urls-sent-in-emails-containing-a-percent-can-not-be-updated

URLs were decoded before making a search query to the db. This is the reason the `%2F` character gets converted to  `/`. This decoding is not required.
This commit is contained in:
Princi Vershwal 2024-07-02 21:13:32 +05:30 committed by GitHub
parent b36c2356fc
commit bec647412f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,9 +105,6 @@ class LinkClickTrackingService {
* @throws {errors.BadRequestError}
*/
#parseLinkFilter(filter) {
// decode filter to manage any encoded uri components
filter = decodeURIComponent(filter);
try {
const filterJson = nql(filter).parse();
const postId = filterJson?.$and?.[0]?.post_id;