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

Fix e2073a37 which caused double slashes to occur #104

Merged
merged 1 commit into from Aug 20, 2012
Merged

Fix e2073a37 which caused double slashes to occur #104

merged 1 commit into from Aug 20, 2012

Conversation

jpmckinney
Copy link
Contributor

if url.startswith('/'):
    url = config.get('ckan.site_url','').rstrip('/') + '/' + url

Think about it. url starts with "/". You add a slash before url. What do you get? Double slash! (Which causes URLs to 404 unless your web server automatically reduces multiple consecutive slashes to single slashes).

amercader added a commit that referenced this pull request Aug 20, 2012
Fix e2073a3 which caused double slashes to occur
@amercader amercader merged commit 5f414d0 into ckan:master Aug 20, 2012
@amercader
Copy link
Member

Thanks for the patch @jpmckinney

wardi added a commit that referenced this pull request Sep 11, 2017
re-enable jinja2 bytecode caching
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