X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/d315fb03a2eb395d92d74c2500df9abc5f8c3125..349f05287a5b6fbb19f4c1638cc1d75ab258fb66:/src/pages/DetailsPage.svelte?ds=sidebyside diff --git a/src/pages/DetailsPage.svelte b/src/pages/DetailsPage.svelte index bb72e14..500c5c3 100644 --- a/src/pages/DetailsPage.svelte +++ b/src/pages/DetailsPage.svelte @@ -16,7 +16,7 @@ import Map from '../components/Map.svelte'; let aPlace; - let base_url = window.location.search; + let base_url; let api_request_params; let api_request_finished = false; @@ -57,6 +57,7 @@ let pageinfo = $page; if (pageinfo.tab === 'details') { loaddata(pageinfo.params); + base_url = window.location.search; } } @@ -138,14 +139,14 @@ {#if aPlace.address} {#each aPlace.address as addressLine} - + {/each} {/if} {#if aPlace.linked_places}

Linked Places

{#each aPlace.linked_places as addressLine} - + {/each} {/if} @@ -161,15 +162,17 @@ {/each} -

Address Keywords

- {#each aPlace.keywords.address as keyword} - - {formatKeywordToken(keyword.token)} - {#if keyword.id} - word id: {keyword.id} - {/if} - - {/each} + {#if aPlace.keywords.address} +

Address Keywords

+ {#each aPlace.keywords.address as keyword} + + {formatKeywordToken(keyword.token)} + {#if keyword.id} + word id: {keyword.id} + {/if} + + {/each} + {/if} {:else}