wintercms / wn-pages-plugin

Static Pages plugin for Winter CMS
https://wintercms.com/
MIT License
9 stars 21 forks source link

WYSIWYG can't translate internal links #38

Open steva82 opened 1 year ago

steva82 commented 1 year ago

Description:

I have different translated Pages. Sometimes, I need to add a link between two of these Pages in the content with the editor by the "Link" icon. When I am in the main language, everything works. When I switch to the translated version of the content and click the "Link" icon, the search field is able to find only the page in the original language, not the right translated version.

Steps To Reproduce:

  1. select the main language (IT)
  2. add a second language (EN)
  3. create a Page in the main language ( page-italian)
  4. translated this page (page-english)
  5. create in the same way another page (page-italian-bis, page-english-bis)
  6. re-open "page-italian", select a word and add a link to "page-italian-bis"
  7. switch to the english version and try to add a link to "page-english-bis"

Thanks in advanced.

mjauvin commented 1 year ago

It would help to know what you see and what you actually expect to happen.

steva82 commented 1 year ago

Hi @mjauvin , thank you for your first comment.

When I am in the translated content (in english) and I want to insert a link to a Page, I would like to find the translated version of that link, not only the original one (in italian).


I hope these screenshots could help:

Here, I am writing in italian and I am looking for the link in the original language...

Screenshot 2023-08-17 at 09 54 11

...and the search field is able to find it, perfect!

Screenshot 2023-08-17 at 09 54 38

Then, after having switched to english (my second language), the search field finds again only italian version of the Pages...

Screenshot 2023-08-17 at 09 55 43

... and the link is in italian, instead of in english.

Screenshot 2023-08-17 at 09 56 04

So, I need to edit the content in the "Code" visualisation and edit the link manually (in order to have "/en/page-english-bis"). I would expect the link to be in English.

Thank you again.

mjauvin commented 1 year ago

Oh nice, much clearer now!

LukeTowers commented 5 months ago

@mjauvin anything further we can do on this issue?