[ckan-dev] redirect homepage (like on data.gov)

Reinier Battenberg reinier.battenberg at mountbatten.net
Thu Feb 20 18:36:37 UTC 2014


Hi,

I would like to redirect our homepage to /dataset, like http://data.gov 
redirects to /dataset

I tried a few tricks on theme level but i cant figure out/google the 3 lines of 
code that can do the trick.

(i checked their extentions here: https://github.com/ckan/ckan/tree/release-
datagov/ckanext but none of them says: ckanext-redirecthehomepage, i also 
searched the full repo on redirect, so i figured, somewhere I have to do either

(in pylons)
redirect_to(controller='packages', action='dataset', _code=301) }}

in pure python:
    map.redirect('/packages', '/dataset')


I think that is where my python/ckan knowledge ends. (for now)

Anyone can give me a quick pointer?


-- 
rgds,

Reinier Battenberg
Director 
Mountbatten Ltd.
www.mountbatten.net
tel: +256 758 801749
twitter: @batje
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140220/bd29f64c/attachment-0002.html>


More information about the ckan-dev mailing list