question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lektor Admin console edit the wrong document when alternatives are used

See original GitHub issue

Using the latest version of Lektor v3.3.0, when using the Admin console to edit a page. The link return by the little pen in the top left corner is not the right URL.

e.g.: When browsing the page http://localhost:5000/en/support/ the edit link is define as http://localhost:5000/admin/edit?path=%2Fen%2Fsupport%2F.

What links is wrong and doesn’t allow proper editing of the page. The appropriate link should be http://localhost:5000/admin/root:support/edit

This is a regression when comparing to lektor v3.2.2.

Here my project file:

[project]
name = IKUS Software inc
name[fr] = Logiciel IKUS inc
url=https://www.ikus-soft.com/
url_style=absolute
excluded_assets=*.less

[alternatives.en]
name = English
name[fr] = English
locale = en_US
url_prefix = /en/

[alternatives.fr]
primary = yes
name = Francais
name[fr] = Francais
url_prefix = /fr/
locale = fr

[packages]
lektor-make
lektor-git-src-publisher
lektor-disqus-comments = 0.2
lektor-pythonmarkdown = 1.2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ikus060commented, Dec 20, 2021

Had a deeper look at it worked on 3.1.2. The link for page /fr/support is http://localhost:5000/admin/edit?path=%2Ffr%2Fsupport%2F which get redirected to http://localhost:5000/admin/root:support%2Bfr/edit which allow to edit the page properly. Look like a series of bug making it worked.

0reactions
dairikicommented, Dec 20, 2021

This bug currently exists in the 3.2-maintenance branch as well as master. It affects releases 3.2.0–3.2.3 as well as 3.3.0. The last Lektor release without this bug appears to be 3.1.3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Alternatives | Documentation | Lektor Static Content ...
This allows you to translate your website into many different languages or to customize content specifically for some languages or regions. Alternatives are ......
Read more >
Lektor-Icon Theme - GitHub
A modern, single-page-focused theme for the Lektor static CMS - GitHub ... all steps can performed from the Lektor admin GUI, if you...
Read more >
Newest 'lektor' Questions - Stack Overflow
I want to allow content creators access to admin page and let them create and edit blog posts. This as far as I...
Read more >
Untitled
Educ 3013 cu boulder, Ames bros bad news bear, Phoenixia pty ltd! ... 46hx853, Roupas para neve curitiba, Change jsp file extension, Rungia...
Read more >
Ezp - River Thames Conditions - Environment Agency - GOV.UK
Anadolu medeniyeti hititler, Planstellen bayern, Document search app, Promid music, ... Calzedonia leggings jeans 2013, Welburn management mcdonalds, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found