Skip to content

#1446 [Menu] fix: only auto-expand the tree unit on digiriskelement pages#1447

Merged
nicolas-eoxia merged 1 commit into
Evarisk:developfrom
nicolas-eoxia:fix/1446-tree-id-guard
Jul 6, 2026
Merged

#1446 [Menu] fix: only auto-expand the tree unit on digiriskelement pages#1447
nicolas-eoxia merged 1 commit into
Evarisk:developfrom
nicolas-eoxia:fix/1446-tree-id-guard

Conversation

@nicolas-eoxia

Copy link
Copy Markdown
Contributor

Closes #1446

Problème

getLeftMenu() (saturneElement.js) lit ?id= de l'URL et déplie/surligne #unit{id}. Sur une page qui réutilise id pour un autre objet (ex. fiche standard Digirisk ?id=3), il déplie à tort l'élément partageant cet id.

Fix

N'appeler getLeftMenuCurrentUnit(id) que si window.location.pathname contient digiriskelement.

Vérif

Fiche standard ?id=3 : plus de surlignage/dépliage de l'élément 3. Page élément ?id=3 : comportement préservé. Vérifié Playwright. (Complément côté Digirisk : Evarisk/Digirisk#4894.)

Note assets : js/saturne.min.js sera recompilé par la CI à la fusion (source uniquement dans ce PR).

🤖 Generated with Claude Code

…ement pages

getLeftMenu() read the URL "id" and expanded/highlighted #unit{id}. Other pages
reuse "id" for a different object (e.g. the Digirisk standard card), which wrongly
expanded the element sharing that id. Guard the call with a pathname check.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant