GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.35k stars 420 forks source link

[Bug]: links set to 'post link' point to wrong posts #1269

Open atomGit opened 1 year ago

atomGit commented 1 year ago

Operating system

linux

Publii version

0.43.0 (build 16368)

Post editor

None

Bug description

this may or may not be related to the wysiwyg editor

in the link properties editor, setting a link target to 'post link' and clicking on a post to link to in the search results ultimately sets the url to the wrong post (although the correct post title is displayed in the 'post name' field)

setting the link target to 'custom link' works as expected

Steps to reproduce

  1. create a test post and highlight a word
  2. click the link pop-up and set the link to 'post link' in the link properties editor and select a random post
  3. save and preview

the link links to the post just created instead of the intended target

Relevant log output

No response