Files @ 3d39e68ff5bc
Branch filter:

Location: kallithea/docs/dev/translation.rst - annotation

3d39e68ff5bc 61 B text/prs.fallenstein.rst Show Source Show as Raw Download as Raw
Thomas De Schampheleire
urls: allow canonical_url to contain more than just a hostname

Although the .ini file gives the example:

canonical_url = https://kallithea.example.com/repos

it does not actually work. The '/repos' part is stripped off by the
canonical_url method.

The 'host' entry in the arguments passed to routes.url does not strictly
need to be a pure hostname. At least, the implementation does no validation
of this fact, it is concatenated verbatim between the protocol and the rest
of the URL.

As mapping Kallithea to a subpath of a base hostname is a valid
implementation, the canonical_url feature should allow it.
.. _translations:
.. include:: ./../../kallithea/i18n/how_to