You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Page Index shows broken links for pages whose page name and page title (first header line) match in letters but not in case. The link href uses the page title, not the page name (derived from the filename).
Steps to reproduce:
Start fresh container with redimp/otterwiki:2-slim (v2.9.1)
I set environment variable RETAIN_PAGE_NAME_CASE=true (or Retain page name case. under Settings > Content and Editing Preferences), but the bug also occurs without this setting
Create new page such as ExamplePage
In the editor, change the case of the title line such as Examplepage or examplepage and save the page
When altering the title line (beyond just changing the case) like This is an Example Page, the bug does not occur
Go to Page Index, get broken link
I had a look into this and tried to provide a quick fix, but wasn't quite sure how to fix it. I suspect the issue here:
The Page Index shows broken links for pages whose page name and page title (first header line) match in letters but not in case. The link
href
uses the page title, not the page name (derived from the filename).Steps to reproduce:
redimp/otterwiki:2-slim
(v2.9.1)RETAIN_PAGE_NAME_CASE=true
(or Retain page name case. under Settings > Content and Editing Preferences), but the bug also occurs without this settingExamplePage
Examplepage
orexamplepage
and save the pageThis is an Example Page
, the bug does not occurI had a look into this and tried to provide a quick fix, but wasn't quite sure how to fix it. I suspect the issue here:
otterwiki/otterwiki/helper.py
Lines 190 to 199 in 80f1190
Or maybe here:
otterwiki/otterwiki/wiki.py
Lines 162 to 176 in 80f1190
The text was updated successfully, but these errors were encountered: