Replace zone id with county id when placeholder is being used. Fixes #2.

This commit is contained in:
April P. committed 2024-12-18 21:55:08 -08:00
1 parent 7381550335
commit 387473df7d
1 file changed
+8 -1
+8 -1
View File
@@ -86,7 +86,14 @@ public class Base
if (url.Contains("{zone}"))
{
url = url.Replace("{zone}", location.zoneId);
if (location.zoneId == "ZZZ999" || string.IsNullOrEmpty(location.zoneId))
{
url = url.Replace("{zone}", location.cntyId);
}
else
{
url = url.Replace("{zone}", location.zoneId);
}
}