Skip to content
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

Update function to get catalog URI #187

Open
huynguyen-95 opened this issue Jan 12, 2021 · 0 comments
Open

Update function to get catalog URI #187

huynguyen-95 opened this issue Jan 12, 2021 · 0 comments

Comments

@huynguyen-95
Copy link

huynguyen-95 commented Jan 12, 2021

Dear dcat project,
I'm working with CKAN and using DCAT extension.
The problem here is happened when CKAN is deployed as non-root (e.g.: http://myhost.com/ckan)

The URI for getting the relevant entities is generated based on ckanext.dcat.base_uri or ckan.site_url.
I did not use the first option ckanext.dcat.base_uri because I want to centralize everything based on ckan.site_url but DCAT plugin generate the wrong URI (e.g.: http://myhost.com) because my CKAN is deployed as non-root

And I checked code, in ultils.py, we should add ckan.root_path at line 162

uri = config.get('ckan.site_url')

It should be:

uri = config.get('ckan.site_url') + config.get('ckan.root_path')

About ckan.root_path, you could check here: ckan.root_path

Thanks,
Huy

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

No branches or pull requests

1 participant