Skip to content
This repository was archived by the owner on Apr 24, 2026. It is now read-only.

feat: add default url to nodes#346

Merged
jnatten merged 1 commit into
masterfrom
feat/matomo-frontpage-stats
Apr 20, 2026
Merged

feat: add default url to nodes#346
jnatten merged 1 commit into
masterfrom
feat/matomo-frontpage-stats

Conversation

@jnatten
Copy link
Copy Markdown
Contributor

@jnatten jnatten commented Apr 15, 2026

Skal brukes i både ndla-frontend for å hente ut <link rel="canonical" href="..." />, men også av populær artikkel fetchingen i backend.

@jnatten jnatten requested a review from a team April 15, 2026 12:41
@jnatten jnatten force-pushed the feat/matomo-frontpage-stats branch from 31f81cd to c0956aa Compare April 15, 2026 13:04
@jnatten jnatten changed the title feat: add canonical url to nodes feat: add default url to nodes Apr 16, 2026
This patch introduces default url to the `NodeDTO` type.
This is the url rendered version of the default language (nb), or the
name of the node if no nb translation exists.

To be used to generate a shared tracking url in the frontend.

Also include the name part of the url on the `NodeDTO`. Both the
default and the translated version.
@jnatten jnatten force-pushed the feat/matomo-frontpage-stats branch from c0956aa to e1a6bff Compare April 16, 2026 05:57
Comment thread src/main/java/no/ndla/taxonomy/service/dtos/NodeDTO.java
Comment thread src/main/java/no/ndla/taxonomy/service/dtos/NodeDTO.java
@jnatten jnatten merged commit 544688b into master Apr 20, 2026
3 checks passed
@jnatten jnatten deleted the feat/matomo-frontpage-stats branch April 20, 2026 05:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants