X-Git-Url: https://git.openstreetmap.org/nominatim-ui.git/blobdiff_plain/c2a3d9e360d60b15cbf71840c2307fb3e0a3ea33..299cd3166ec51bcfddacf4133f21439b93547bd0:/src/components/DetailsOneRow.svelte?ds=sidebyside

diff --git a/src/components/DetailsOneRow.svelte b/src/components/DetailsOneRow.svelte
index 8b77df2..8ba3769 100644
--- a/src/components/DetailsOneRow.svelte
+++ b/src/components/DetailsOneRow.svelte
@@ -8,6 +8,7 @@
   export let addressLine;
   export let bDistanceInMeters;
   export let bMarkUnusedLines = false;
+  export let sCountryCode;
 
   $: bAddressLineUsed = addressLine.isaddress;
   $: reverse_only = Nominatim_Config.Reverse_Only;
@@ -38,7 +39,8 @@
         search by name
       </PageLink>
     {:else if !reverse_only && addressLine.type === 'postcode'}
-      <PageLink page='search' params_hash={{ postalcode: addressLine.localname }}>
+      <PageLink page='search'
+                params_hash={{ postalcode: addressLine.localname, country: sCountryCode }}>
         search by name
       </PageLink>
     {/if}
