Skip to content

Conversation

@hwelch-fle
Copy link

@hwelch-fle hwelch-fle commented Aug 13, 2025

Resolves issue #4 by storing the url path and adding it back to any paths passed to clean_url

>>> client = DirectusClient('https://my.domain.com/X/')
>>> client.subpath
'X' # strip all leading and trailing slashes
>>> client.url
'https://my.domain.com'

>>> client.clean_url(client.url, '/articles/1')
'https://my.domain.com/X/articles/1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants