Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature requests: get url relative to another url #161

Open
fnep opened this issue Sep 12, 2022 · 0 comments
Open

Feature requests: get url relative to another url #161

fnep opened this issue Sep 12, 2022 · 0 comments

Comments

@fnep
Copy link

fnep commented Sep 12, 2022

I just started using furl in a project. The only thing I miss a method to get the url relative to some other url. Maybe i did not find the way to do it, but i assume this is a feature request.

Something like this …

>>> furl("http://a.com/a/b/c").relative_to("http://a.com/a/b/d")
furl('../d')

... while keeping the domain in mind …

>>> furl("http://a.com/a/b/c").relative_to("http://b.com/a/b/d")
furl('http://b.com/a/b/d')

This would be a grad addition.

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

No branches or pull requests

1 participant