Commit 9eccd77
committed
fix(apps): use legacyBehavior for next-links used by RCHC-lib
TH-1427.
Use a `legacyBehavior` for next/link used by RCHC-lib to get rid of
double a-elements (a-element inside another), which broke the event info
link styles by adding text decorations etc. It is also against the
HTML-standard. See more about `legacyBehavior` from
https://nextjs.org/docs/14/pages/api-reference/components/link#legacybehavior.
The `legacyBehavior` for next/link is needed while the `<a>` is still
injected in the Link component in react-helsinki-headless-cms -library.
See
https://github.com/City-of-Helsinki/react-helsinki-headless-cms/blob/
130fafdabf8007143ae32f4866d8062c3e5afbcd/src/core/link/LinkBase.tsx#L229-L258.1 parent 23c095b commit 9eccd77
3 files changed
Lines changed: 3 additions & 3 deletions
File tree
- apps
- events-helsinki/src/hooks
- hobbies-helsinki/src/hooks
- sports-helsinki/src/hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments