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

Unable to configure pages with a custom root_path #98

Open
ccancellieri opened this issue Jun 9, 2020 · 0 comments
Open

Unable to configure pages with a custom root_path #98

ccancellieri opened this issue Jun 9, 2020 · 0 comments

Comments

@ccancellieri
Copy link

Hi,
I'm trying to use pages with our ckan platform which has been configured using the ckan.root_path as following (in the production.ini):

ckan.root_path = /catalog

And in the who.ini we have:

[plugin:friendlyform]
use = repoze.who.plugins.friendlyform:FriendlyFormPlugin
login_form_url= /catalog/user/login
login_handler_path = /login_generic
logout_handler_path = /user/logout
rememberer_name = auth_tkt
post_login_url = /catalog/user/logged_in
post_logout_url = /catalog/user/logged_out

while in nginx we have:

    location /catalog/ {
        proxy_pass http://localhost:8080/catalog/;
        proxy_set_header Host $host;
        proxy_cache_bypass $cookie_auth_tkt;
        proxy_no_cache $cookie_auth_tkt;
        proxy_cache_valid 30m;
        proxy_cache_key $host$scheme$proxy_host$request_uri;
    }

So ckan responds to:

http://XXXXXXXXX/catalog/

When we click on the icon on top to create a page it points to:

http://XXXXXXXXX/catalog/pages

When we create a page (f.e.: public so it will be published on the header of the page) the plugin points correctly to:

http://XXXXXXXXX/catalog/pages_edit

The problem is when we click on the new link created on the header the link bring us to:

http://XXXXXXXXX/pages/test

instead of:

http://XXXXXXXXX/catalog/pages/test

I've looked around but can't find any parameter to setup that path properly on the pages plugin.

Note: Still have to test grup and organization functionnalities.

@ccancellieri ccancellieri changed the title Unable to configure pages with a custom base path Unable to configure pages with a custom root_path Jun 9, 2020
Patrick1Rhode added a commit to Patrick1Rhode/ckanext-pages that referenced this issue Jun 25, 2020
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