fix: preserve root-relative links when moving debt entries #7165

Merged
MrMha merged 1 commit from upstream-pr/7165 into main 2026-10-17 20:49:33 +00:00
MrMha commented 2026-10-17 14:41:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MrMha on 2026-10-17T14:41:56Z.


What

Preserve root-relative URL destinations when moving technical-debt entries. A link such as /AnyPS5/guide.html#usage has the same destination from every document; rebasing it with filesystem-relative paths currently changes that destination. Ordinary relative links still move with the entry.

Tested

macOS 27.0.1 arm64, Python 3.12.14 / Node 24.19.0; based on main 82f0c9aec9fc963a61d13c62084ce08f3cd093ab. The new regression fails against unchanged main production code and passes with this change.

Focused Python suite: 13 tests, all pass. The new regression also passes on Python 3.9.6.

A combined branch containing these ten independent fixes builds in Release with ANYPS5_RELINKER_ONLY=ON; all 178 portable CTest cases, the standalone browser suite and the test-registration audit pass (23 executables registered, none omitted). Conventions and whitespace checks pass for each independent branch. No title execution or GPU validation was performed; these are tooling/browser changes.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes (OpenAI Codex)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4900991903 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7165). Originally posted by [MrMha](https://github.com/MrMha) on 2026-10-17T14:41:56Z. --- ### What Preserve root-relative URL destinations when moving technical-debt entries. A link such as `/AnyPS5/guide.html#usage` has the same destination from every document; rebasing it with filesystem-relative paths currently changes that destination. Ordinary relative links still move with the entry. ### Tested macOS 27.0.1 arm64, Python 3.12.14 / Node 24.19.0; based on main `82f0c9aec9fc963a61d13c62084ce08f3cd093ab`. The new regression fails against unchanged main production code and passes with this change. Focused Python suite: 13 tests, all pass. The new regression also passes on Python 3.9.6. A combined branch containing these ten independent fixes builds in Release with `ANYPS5_RELINKER_ONLY=ON`; all 178 portable CTest cases, the standalone browser suite and the test-registration audit pass (23 executables registered, none omitted). Conventions and whitespace checks pass for each independent branch. No title execution or GPU validation was performed; these are tooling/browser changes. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes (OpenAI Codex)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!7165
No description provided.