wagtail-localize icon indicating copy to clipboard operation
wagtail-localize copied to clipboard

No live button/link on translated pages

Open jkevingutierrez opened this issue 4 years ago • 6 comments
trafficstars

Translated pages don't have the View Live button either the Live link button when you are editing the page

image

image

Original (en-us) page:

image

image

jkevingutierrez avatar Jan 18 '21 18:01 jkevingutierrez

Have you configured i18n_patterns? https://docs.wagtail.io/en/stable/advanced_topics/i18n.html#adding-a-language-prefix-to-urls

kaedroho avatar Jan 18 '21 21:01 kaedroho

@kaedroho yes, in fact, if I write the URL manually, the page works well, but the buttons to view the Live page aren't present in localized pages

jkevingutierrez avatar Jan 18 '21 21:01 jkevingutierrez

I believe this was fixed. Version 1.0 displays the live button when editing a translated page

zerolab avatar Nov 30 '21 22:11 zerolab

I have a similar problem but the Live button is shown but the URL is wrong. It seems to ignore the base_url. On the English original page, the Live button goes to http://localhost:8000/ while on the German translation, it goes to http://localhost/de/ which does not work.

It tried to set BASE_SITE_URL = 'http://localhost:8000' but that didnt help.

raindeer avatar Feb 04 '22 10:02 raindeer

@raindeer this might be the site record in the admin has an incorrect port. Could you try looking in the Settings => Sites section in the admin and checking that the default site has the correct port?

kaedroho avatar Feb 04 '22 10:02 kaedroho

Thanks! that worked, but I dont understand why the English Live link worked and not the German, shouldnt they use the same way for figuring out the URL?

raindeer avatar Feb 04 '22 10:02 raindeer