Skip to content

Commit 37f2251

Browse files
committed
don't replace base url in paginator path anymore
1 parent db1e4c0 commit 37f2251

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

airbyte_cdk/sources/declarative/requesters/paginators/default_paginator.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,7 @@ def path(
159159
) -> Optional[str]:
160160
token = next_page_token.get("next_page_token") if next_page_token else None
161161
if token and self.page_token_option and isinstance(self.page_token_option, RequestPath):
162-
# make additional interpolation context
163-
interpolation_context = get_interpolation_context(
164-
stream_state=stream_state,
165-
stream_slice=stream_slice,
166-
next_page_token=next_page_token,
167-
)
168-
# Replace url base to only return the path
169-
return str(token).replace(self.url_base.eval(self.config, **interpolation_context), "") # type: ignore # url_base is casted to a InterpolatedString in __post_init__
162+
return str(token)
170163
else:
171164
return None
172165

0 commit comments

Comments
 (0)