# If format-html is explicity requested, forward to the UI.
RewriteCond %{QUERY_STRING} "format=html"
- RewriteRule ^([^/]+).php ui/$1.html [R,END]
- # Same but .php suffix is missing.
- RewriteCond %{QUERY_STRING} "format=html"
- RewriteRule ^([^/]+) ui/$1.html [R,END]
+ RewriteRule ^([^/]+)(.php)? ui/$1.html [R,END]
# If no format parameter is there then forward anything
# but /reverse and /lookup to the UI.
RewriteCond %{QUERY_STRING} "!format="
RewriteCond %{REQUEST_URI} "!/lookup"
RewriteCond %{REQUEST_URI} "!/reverse"
- RewriteRule ^([^/]+).php ui/$1.html [R,END]
- # Same but .php suffix is missing.
- RewriteCond %{QUERY_STRING} "!format="
- RewriteCond %{REQUEST_URI} "!/lookup"
- RewriteCond %{REQUEST_URI} "!/reverse"
- RewriteRule ^([^/]+) ui/$1.html [R,END]
+ RewriteRule ^([^/]+)(.php)? ui/$1.html [R,END]
</Directory>
```
{
if (empty($this->aName)) {
$this->bNameNeedsAddress = $bNeedsAddress;
+ } elseif ($bSearchable && count($this->aName) >= 2) {
+ $this->bNameNeedsAddress = false;
} else {
$this->bNameNeedsAddress &= $bNeedsAddress;
}
if not item.suffix:
token_info.add_place(self._compute_partial_tokens(item.name))
elif not item.kind.startswith('_') and not item.suffix and \
- item.kind not in ('country', 'full'):
+ item.kind not in ('country', 'full', 'inclusion'):
token_info.add_address_term(item.kind, self._compute_partial_tokens(item.name))
token_info.add_street(self.conn, value)
elif key == 'place':
token_info.add_place(self.conn, value)
- elif not key.startswith('_') and key not in ('country', 'full'):
+ elif not key.startswith('_') \
+ and key not in ('country', 'full', 'inclusion'):
addr_terms.append((key, value))
if hnrs: