Altinn / Altinn/app-lib-dotnet
Link not working in "title" element
- Dominant language
- C#
- Stars
- 8
- Forks
- 27
- Avg merge
- 3h 1m
- Merged PRs (30d)
- 8
Description
### Description of the bug
Defining a link (lenke) in a "**title**" text (in my case for a radiobutton) does not work. When putting the exact same textId in a "description" it works as expected.

### Steps To Reproduce
The component that I used, was created like this:
```
{
"dataModelBindings": {
"simpleBinding": "SkjemaData.anleggsGevinstTapJaNei"
},
"id": "RadioButtons-AnleggsmGevinstTap-tekst-i-flere-deler",
"type": "RadioButtons",
"textResourceBindings": {
"title": [
"concat",
[
"text",
"S05_AnleggsmGevinstTap.RadioButtons-AnleggsmGevinstTap.title.del1"
],
" ",
[
"linkToPage",
["text", "S05_Anleggsmidler"],
"S05_Anleggsmidler"
]
],
"description": [
"concat",
[
"text",
"S05_AnleggsmGevinstTap.RadioButtons-AnleggsmGevinstTap.title.del1"
],
" ",
[
"linkToPage",
["text", "S05_Anleggsmidler"],
"S05_Anleggsmidler"
]
]
},
"optionsId": "JaNeiOptionlist"
},
```
### Additional Information
Bug created in connection with this Slack-thread: https://altinn.slack.com/archives/C02EJ9HKQA3/p1734356304622969
Contributor guide
Research direction
Start by reproducing the RadioButtons configuration from the issue, comparing the title and description textResourceBindings and their linkToPage behavior. Trace how these bindings are rendered and confirm that the link works in the title as it already does in the description.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100