Lektor Admin console edit the wrong document when alternatives are used
See original GitHub issueUsing 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:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Had a deeper look at it worked on 3.1.2. The link for page
/fr/support
ishttp://localhost:5000/admin/edit?path=%2Ffr%2Fsupport%2F
which get redirected tohttp://localhost:5000/admin/root:support%2Bfr/edit
which allow to edit the page properly. Look like a series of bug making it worked.This bug currently exists in the
3.2-maintenance
branch as well asmaster
. 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.