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 server doubles subfolder in url without obvious reason

See original GitHub issue

I have a strange problem regarding the lektor server:

While my navigation works perfectly with every page and subpage, links to subpages in the content section don’t.

E.g. if I set a relative path like

[My Link to Subpage](/peter/personalinfo)

it is correctly solved in the browser view. If I hover the mouse over the link the browser shows the correct url 127.0.0.1:5000/peter/personalinfo.

But if I click it I get

Not Found

The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

and the url in the address field shows

127.0.0.1:5000/peter/peter/personalinfo

I.e. I click the correct url but the browser calls the wrong url and of course can’t find anything there. I don’t understand how this doubling can happen. I naively would expect that if I clicked a link the browser would exactly look at that address. But it seems like the server is redirecting to the malformed url. And yes, it does so with any link to a subpage.

the navigation looks like this:

Home
News
Peter
-- Personalinfo
-- Contact
-- Portfolio
Bob
-- Personalinfo
-- Contact
-- Portfolio

That only occurs with the lektor server. If I lektor build and/or deploy it the whole project works fine.

Any idea why this happens and how to change it?

It happens under Ubuntu 20.04, MacOS Monterey and with both lektor 3.2 and 3.31.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
relikdcommented, Mar 24, 2022

Perfect timing to get here! @dairiki your PR was merged 8 days ago, congrats. Now we need to wait until the changes are reflected in lektor werkzeug dependency. 😃

2reactions
dairikicommented, Feb 12, 2022

I have now made an attempt at an upstream fix: pallets/werkzeug#2338.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lektor server doubles subfolder in url without obvious reason
I am trying to export an existing php-based dynamic webpage into a lektor project which up to now really worked well. Unfortunately one...
Read more >
URLs and Slugs | Documentation | Lektor Static Content ...
Lektor by default will prefer relative URLs. This makes it possible to easily host a website below a certain folder without having to...
Read more >
Untitled
Superdome stadium map, Mark kurlansky world without fish! ... Belajar menggambar anime, Best fights ever in nba, Non obvious thesaurus, K-multimedia player ...
Read more >
Untitled
W by worth fall 2015, Regenerador de baterias no recargables? ... Kiwi bra website, Obvious type double patenting mpep, Sebastian meyer plath bruker, ......
Read more >
Spis treści - Datacap 9.1.3
Datacap Rulerunner Server. Datacap Rulerunner Service runs as a Windows service and runs batch processing tasks that do not require.
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