514
514
parsed_source = self._split_url(source)
515
515
parsed_target = self._split_url(target)
516
516
pl = len(self._parsed_url.path)
517
519
excess_tail = parsed_source.path[pl:].strip("/")
518
520
if not target.endswith(excess_tail):
519
521
# The final part of the url has been renamed, we can't handle the