diff --git a/sectxt/__init__.py b/sectxt/__init__.py index 98d6352..5b31bb8 100644 --- a/sectxt/__init__.py +++ b/sectxt/__init__.py @@ -575,6 +575,9 @@ def _process(self) -> None: except: continue if resp.status_code == 200: + if resp.history: + if not resp.url.endswith(path): + continue self._path = path self._url = url if scheme != "https":