Skip to content

Conversation

@gunnarvelle
Copy link
Member

Ny url ikkje tilgjengelig endå, så må vente med denne til vi får beskjed om det.

.forEach(embed => {
val url = embed.attr("data-url")
if (url.contains("ndla.filmiundervisning.no/film/ndlafilm.aspx?")) {
embed.attr("data-url", url.replace("/ndlafilm.aspx?", "/")): Unit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skal de nye url'ene være typ: https://ndla.filmiundervisning.no/film/filmId=13074?
Veldig rart å ha = uten at det er query parameter med 🤷

Copy link
Member Author

@gunnarvelle gunnarvelle Apr 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sant det. Har ikkje tenkt på.

Vil dere ha mulighet til å programmere script endring av iframe URLer dere har i dag på et avtalt tidspunkt?
(Vi kommer til å gjøre klar ny URL struktur som er tilgjengelig samtidig med den gamle.)
URL endres fra: https://ndla.filmiundervisning.no/film/ndlafilm.aspx?filmId=400199
Til feks: https://ndla.filmiundervisning.no/film/400199

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oki!
Det er jo ikke sånn at det gjør noe, bare litt merkelig 😄

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avventer uansett beskjed fra norgesfilm før vi tar dette inn.

@gunnarvelle gunnarvelle marked this pull request as ready for review June 10, 2025 13:41
@gunnarvelle
Copy link
Member Author

Nye urler er på formatet /film/id. Stagingurler er https://ndla-staging.azurewebsites.net/ndla/11970

Har hacka til en test på https://ndla-frontend-pr-2535.vercel.app/r/ndla-film/catfish/539f0a60b6

Copy link
Contributor

@jnatten jnatten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gunnarvelle gunnarvelle force-pushed the convert-norgesfilm-urls branch from bd1406c to 86a171c Compare September 22, 2025 08:17
Copy link
Contributor

@jnatten jnatten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stilig med ndla2 i navnet på url'en 🥲

@gunnarvelle
Copy link
Member Author

Stilig med ndla2 i navnet på url'en 🥲

Hadde du funne på nokke sånt, hadde eg ikkje latt det passere...

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.

3 participants