This PR appends the current page path (window.location.pathname) to the extra field stored in local storage. This value is used to filter which highlights should be rendered, fixing the current issue where all highlights are shown regardless of which page they were created.
The extra field is still a string, but instead of only being the text the user submitted as feedback, it's now a stringified object with a text attribute (user's feedback) and page attribute.
This PR appends the current page path (
window.location.pathname
) to theextra
field stored in local storage. This value is used to filter which highlights should be rendered, fixing the current issue where all highlights are shown regardless of which page they were created.The
extra
field is still a string, but instead of only being the text the user submitted as feedback, it's now a stringified object with atext
attribute (user's feedback) andpage
attribute.