i-net-software / i-net-software/dokuwiki-plugin-siteexport

Cyrillic links in pages don't work

Open
#46 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
26
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Hi there.
I have a problem with internal links. I have pages that are with **Cyrillic** names. There is internal links in them redirecting to other Cyrillic named pages. When I export the namespace that include such pages links don't work.
Please give me an idea where in code to search encoding of internal links. Or why doesn't work at all.
Thanks in advanced.

_// Example - Structure of pages_
**namespace:**
животни
**pages:**
риба
toc

**page toc content:**
[[.:риба]]

When I open toc file and click on link риба browser try to open:
file:///C:/Documents%20and%20Settings/user/Desktop/dokuwiki/export_test/D0_B6_D0_B8_D0_B2_D0_BE_D1_82_D0_BD_D0_B8/D1_80_D0_B8_D0_B1_D0_B0
I found out that url encoding of животни is D0_B6_D0_B8_D0_B2_D0_BE_D1_82_D0_BD_D0_B8 and url encoding of риба is D1_80_D0_B8_D0_B1_D0_B0.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in the siteexport handling for internal links and reproduce the issue with the Cyrillic namespace животни and page риба from the report. Trace how those links become exported file URLs; done means clicking the exported link opens the corresponding Cyrillic-named page instead of the D0_B6... encoded path failing.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.