From d9f39770283136755ac77ae8fee28e9534e48450 Mon Sep 17 00:00:00 2001 From: Petr Date: Sun, 15 Mar 2026 02:06:22 +0100 Subject: [PATCH] URL-encode FQN in catalog header links (spaces -> %20) --- src/catalog_export.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/catalog_export.py b/src/catalog_export.py index cb457c0..c56ddf0 100644 --- a/src/catalog_export.py +++ b/src/catalog_export.py @@ -20,6 +20,7 @@ import os from datetime import datetime, timezone from pathlib import Path from typing import Any, Dict, List, Optional +from urllib.parse import quote import yaml @@ -82,7 +83,7 @@ def _yaml_header(catalog_url: str, fqn: str = "", entity_type: str = "") -> str: """ timestamp = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ") if fqn and entity_type: - source_url = f"{catalog_url}/{entity_type}/{fqn}" + source_url = f"{catalog_url}/{entity_type}/{quote(fqn, safe='.')}" else: source_url = catalog_url lines = [