Skip to content

feat(resource): add external url override to ResourceViewer - #1215

Merged
ThibaudDauce merged 4 commits into
mainfrom
feat/explore/configurable-urls
Sep 7, 2026
Merged

ThibaudDauce merged 4 commits into
mainfrom
feat/explore/configurable-urls

Conversation

@abulte

@abulte abulte commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Related opendatateam/udata-front-kit#1373

Allows to override the resource external url used for "Copier le lien" target. Useful for front-kit verticals.

@ThibaudDauce

Copy link
Copy Markdown
Contributor

Instead of having a prop passing by every component, should it be better to use the datagouv-components config to specify the resourceExternalUrl?

@abulte

abulte commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

@ThibaudDauce simpler, done.

Comment thread datagouv-components/src/config.ts Outdated
@abulte
abulte requested a review from ThibaudDauce September 7, 2026 14:23
@ThibaudDauce
ThibaudDauce merged commit 75174b5 into main Sep 7, 2026
20 of 21 checks passed
@ThibaudDauce
ThibaudDauce deleted the feat/explore/configurable-urls branch September 7, 2026 15:05
ThibaudDauce pushed a commit that referenced this pull request Sep 17, 2026
Follow up #1215 
Related opendatateam/udata-front-kit#1373

I've been too eager to follow the review comments there. We actually
need prop rather than config downstream: the component is mounted in
different contexts/pages and thus a prop is better suited to configure
the component.

This removes the config key and adds the props. It also handles
`ResourceAccordion.vue` that was left out before.
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.

2 participants