Skip to content

XLoader Relative URIs & Language Domain Plugin Support#229

Open
JVickery-TBS wants to merge 10 commits into
canada-v2.10from
feature/xloader-relative-uris
Open

XLoader Relative URIs & Language Domain Plugin Support#229
JVickery-TBS wants to merge 10 commits into
canada-v2.10from
feature/xloader-relative-uris

Conversation

@JVickery-TBS

Copy link
Copy Markdown

feat(dev): xloader relative uris;

  • Do not store absolute URIs in the database.

Similar to what we did for the resource URIs to not store absolute paths, and then just set the request domain in the package_show.

req: open-data/ckanext-xloader#36

- Do not store absolute URIs in the database.
- Added change log file.
@JVickery-TBS JVickery-TBS changed the title XLoader Relative URIs XLoader Relative URIs & Language Domain Plugin Support Jun 8, 2026
- Added support for the language_domains plugin.
Comment thread ckan/logic/action/get.py Outdated
Comment thread ckan/logic/action/get.py Outdated
@wardi

wardi commented Jun 14, 2026

Copy link
Copy Markdown
Member

This feels like it would be better as a real language domains plugin interface or something. We can park that until later though.

@JVickery-TBS

Copy link
Copy Markdown
Author

Yeah my vanity domain plugin (https://github.com/open-data/ckanext-language-domains) is relying on monkey-patching and this specific core fix to not store resource urls in SOLR. ...and it kinda has to go a bit crazy with a Flask Middlware :/

So having some Interface in core to better control domains, root paths, and language directories could be useful.

@JVickery-TBS JVickery-TBS requested a review from wardi June 16, 2026 19:32
@JVickery-TBS

Copy link
Copy Markdown
Author

@wardi sorry, gunna do the more specific domain_languages logic inside of that plugin in a chained package_show action. So this is truely just now to support relative XLoader URIs from the database and SOLR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants