Repository navigation
docs(ru): fix the anchors that the site cannot resolve - #675
Merged
Merged
Conversation
The anchors of the headings are built by `TOC\UniqueSlugify`, which transliterates the Cyrillic letters. A link with a Cyrillic anchor therefore leads nowhere, and the pages of the Russian locale carried fifteen such links. The anchors are replaced with the transliterated ones: - `#публикация-в-менеджере-и-несколько-групп` → `#publikaciya-v-menedzhere-i-neskolko-grupp`; - `#кэширование` → `#keshirovanie`; - `#объединение-полей` → `#obedinenie-poley`; - `#пользовательские-заголовки` → `#polzovatelskie-zagolovki`; - `#удаленные-объекты` → `#udalennye-obekty`; - `#правило-callable` → `#pravilo-callable`; - `#типы-системных-настроек` → `#tipy-sistemnyh-nastroek`; - `#процессоры-в-modx-3` → `#processory-v-modx-3`; - `#использование`, `#плейсхолдеры`, `#см-также` → `#ispolzovanie`, `#pleysholdery`, `#sm-takzhe`. The anchors are checked against the headings of the pages they point to, with the same slugifier the site uses.
Ibochkarev
added a commit
to Ibochkarev/Docs-MODX
that referenced
this pull request
Oct 20, 2026
The Russian page of the administrator policy is rewritten in this branch: it lists the 183 permissions of the Administrator policy of MODX 3, one per row, while the page on `3.x` still lists 101 of them and adds four that the core does not have (`Content_Types`, `import_static`, `logs` and one row in Russian). The rewritten table is kept, together with the transliterated anchor from modxorg#675.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The anchors of the headings are built by
TOCUniqueSlugify, which transliterates the Cyrillic letters. A link with a Cyrillic anchor therefore leads nowhere — the browser looks for#публикация-в-менеджере-и-несколько-групп, while the heading carries the id#publikaciya-v-menedzhere-i-neskolko-grupp.The Russian locale carried fifteen such links. They are replaced with the transliterated ones:
#публикация-в-менеджере-и-несколько-групп#publikaciya-v-menedzhere-i-neskolko-grupp#кэширование#keshirovanie#объединение-полей#obedinenie-poley#пользовательские-заголовки#polzovatelskie-zagolovki#удаленные-объекты#udalennye-obekty#правило-callable#pravilo-callable#типы-системных-настроек#tipy-sistemnyh-nastroek#процессоры-в-modx-3#processory-v-modx-3#использование,#плейсхолдеры,#см-также#ispolzovanie,#pleysholdery,#sm-takzheThe pages that are touched:
ru/building-sites/client-proofing/security/policies/index.mdru/building-sites/client-proofing/security/policies/permissions/administrator-policy.mdru/building-sites/client-proofing/security/policies/permissions/resource-policy.mdru/building-sites/client-proofing/security/security-tutorials/giving-a-user-manager-access.mdru/extending-modx/modx-class/reference/modx.haspermission.mdru/extending-modx/xpdo/custom-models/defining-a-schema/validators.mdru/building-sites/resources/custom-resources.mdru/building-sites/resources/static-resource.mdru/building-sites/resources/symlink/index.mdru/building-sites/settings/index.mdru/building-sites/tag-syntax/nested-tags.mdru/extras/eventscalendar2/eventscalendar2.tplhead2.mdru/getting-started/upgrading-to-3.0/actions.mdChecks
cocur/slugify4.7.1 withTOCUniqueSlugify)markdownlint-cli@0.18(the version used by CI): 0 issuesNote
There are about 130 links left in the Russian locale that point to an anchor that no heading carries — mostly the glossary, whose terms are not headings, and the pages of the extras, which keep the anchors of MODX 2. They are older than the recent passes and are left for a separate look.