liqd/adhocracy — pull request #62 by phihag (2012-09-24 06:51:08+00:00)
Title: Support for relative URLs

Currently, in order to connect to an adhocracy instance, the user/administrator has to configure *.adhocracy.domain to resolve to the desired IP address(es), since the URLs we generate are of the form

https://test.adhocracy.domain/instance/test/

This poses significant hurdles to developers and administrators (See #21). Additionally, it implies that in order to use adhocracy, one must be able to acquire a wildcard certificate (which is significantly more expensive, or even not given out, depending on the CA).

Therefore, we should enable administrators to always use paths of the form

https://adhocracy.domain/i/test/instance/test/

where the `test` in `/i/test/` denotes the instance name.

This requires that we use proper URL generation in a number of places where we previously used hacks that assumed running on a domain for each instance.