-
Notifications
You must be signed in to change notification settings - Fork 0
Converts norgesfilm-urls for new format #612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| .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 |
There was a problem hiding this comment.
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 🤷
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 😄
There was a problem hiding this comment.
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.
|
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
bd1406c to
86a171c
Compare
jnatten
left a comment
There was a problem hiding this 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 🥲
Hadde du funne på nokke sånt, hadde eg ikkje latt det passere... |
Ny url ikkje tilgjengelig endå, så må vente med denne til vi får beskjed om det.