rtfd/readthedocs.org — Issue #138: Full text search on subdomain takes me back to readthedocs.org
Author: rgrp
Created: 2011-11-13 16:31:00+00:00
State: open

Make be related to #62 (Site URLs should be configurable) but is somewhat different AFAICT (apologies if I've missed any other similar issues -- I have searched issues before submitting).

* I'm on a CNAME'd subdomain: http://docs.ckan.org/en/latest/index.html (FWIW this also happens if you start on a subdomain e.g. http://ckan.readthedocs.org/en/latest/index.html)
* Go to full text search in sidebar and search
* End up at: http://readthedocs.org/search/project/?q=theme&selected_facets=project%3Ackan
* All links on that page to results go to http://readthedocs.org/docs/{project-name}/...

This leads to inconsistent urls for the project (one just wants people to use urls at e.g. docs.ckan.org) and can be rather confusing to users. I'm not sure how easy to fix this is (I imagine it requires us to start setting explicit config for project as to authoritative base url so this can be used in link generation and search url).