Hello. I currently have my blog pages set up to merge with an additional database "BlogExtraData" because Wix's blog database fields are limited and don't leave room for much customization. It works well when clicking on a post from my site, however, there's a problem when I add internal links to my blog posts. It'll go to the post and show the actual post, but the items that are apart of the "BlogExtraData" database that generally merge remain the same as the blog the internal link was in.
For example, if you're reading Blog A, everything is fine with the customized fields. If you click on a link that takes you to Blog B while reading Blog A, the customized fields are still the same as Blog A, even though the post is actually Blog B.
In my case, I have fields title, subtitle, author pic, author name, etc. in the "BlogExtraData" database. Is there a way to ensure that these fields properly merge/show when the blog post is clicked on via an internal link on a blog. Below is the code I currently use: