Skip to content

Commit

Permalink
[ckan#4209] Point API docs to stable URL
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader authored and tino097 committed May 4, 2018
1 parent 568f461 commit c60d5d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/app_globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def _init(self):
self.ckan_version = ckan.__version__
self.ckan_base_version = re.sub('[^0-9\.]', '', self.ckan_version)
if self.ckan_base_version == self.ckan_version:
self.ckan_doc_version = 'ckan-{0}'.format(self.ckan_version)
self.ckan_doc_version = self.ckan_version[:3]
else:
self.ckan_doc_version = 'latest'

Expand Down

0 comments on commit c60d5d3

Please sign in to comment.