Part of lp.services.sitesearch View In Hierarchy
Method | url_rewrite_exceptions | A list of launchpad.net URLs that must not be rewritten. |
Method | url_rewrite_scheme | The URL scheme used in rewritten URLs. |
Method | url_rewrite_hostname | The network location used in rewritten URLs. |
Method | __init__ | initialize a PageMatch. |
Method | _sanitize_query_string | Escapes invalid urls. |
Method | _strip_trailing_slash | Return the url without a trailing slash. |
Method | _rewrite_url | Rewrite the url to the local environment. |
Configured in config.sitesearch.url_rewrite_exceptions.
Configured in config.vhosts.use_https.
Configured in config.vhost.mainsite.hostname.
Parameters | title | A string. The title of the item. |
url | A string. The full URL of the item. | |
summary | A string. A summary of the item. |
Links with launchpad.net are rewritten to the local hostname, except if the domain matches a domain in the url_rewrite_exceptions. property.
Parameters | url | A URL str that may be rewritten to the local launchpad environment. |
Returns | A URL str. |