RECOMMENDATIONS: D-canonical-archive REGRESSION — 20 newer sites mеять bug у getLinks() — emit canonical на archive замість empty (broxxx/pornv pre-regression behaviour=правильно)
This commit is contained in:
@@ -332,3 +332,27 @@ curl -sL "https://www.<domain>/<archive-pattern><id>/<slug>" | grep -oE 'rel="ca
|
|||||||
**Frontend template** (`id_index.etlua`) можливо потребує adjustment коли backend exposes `mysettings.cur_archive_path` чи similar — depending on app.lua implementation.
|
**Frontend template** (`id_index.etlua`) можливо потребує adjustment коли backend exposes `mysettings.cur_archive_path` чи similar — depending on app.lua implementation.
|
||||||
|
|
||||||
Reported 2026-05-05 by user audit на 8159 → bug confirmed на ВСІХ 13 sites with archive routing setup.
|
Reported 2026-05-05 by user audit на 8159 → bug confirmed на ВСІХ 13 sites with archive routing setup.
|
||||||
|
|
||||||
|
## D-canonical-archive-regression — REGRESSION у нових `getLinks()` (~20 sites)
|
||||||
|
|
||||||
|
**Update 2026-05-05:** Audit deeper показав що це **regression**, не intended config.
|
||||||
|
|
||||||
|
**Reference (correct behavior — pre-batch sites):**
|
||||||
|
- broxxx.com (8133), pornv.xxx (8120): same `var.canonical_without_archive=1`, але archive route → `getLinks()` повертає `cur_canonical=""` → layout skip emit → **no canonical on archive** ✓
|
||||||
|
- Це matching intent variable name "canonical_without_archive" = "canonical видається без archive context, тобто на archive не emit-иться".
|
||||||
|
|
||||||
|
**Bug (regression — newer sites):**
|
||||||
|
- 8161, 8159, 8163, 8158, 8151, 8152, 8153, 8154, 8155, 8156, 8157, 8158, 8160, 8162, 8140, 8141, 8142, 8145, 8148, 8149: same config `=1`, але archive route → `cur_canonical=<standard URL stripped>` → canonical EMITS до /v/.
|
||||||
|
- Це over-engineered — backend strips archive prefix замість returning empty.
|
||||||
|
|
||||||
|
**Scope:** ~20 sites with newer code version. Different `getLinks()` implementations у `lib/<port>/content.lua`.
|
||||||
|
|
||||||
|
**Fix (backend dev task):**
|
||||||
|
- Identify які content.lua versions мають regression.
|
||||||
|
- Patch `getLinks()` to return `cur_canonical=""` when `canonical_without_archive=1` AND archive route.
|
||||||
|
- Match broxxx/pornv behavior (старий правильний reference).
|
||||||
|
- kor reboot per site.
|
||||||
|
|
||||||
|
**Verify:** після fix на archive URL — `<link rel="canonical">` має бути absent (як у broxxx/pornv).
|
||||||
|
|
||||||
|
Reported 2026-05-05 by user audit. Frontend template OK — issue у `getLinks()` core return value.
|
||||||
|
|||||||
Reference in New Issue
Block a user