#1939 
This looks like it uses the parent term's URL if it exists.  I would have expected it to use the child term's URL and then look to the parent if the child term didn't have a URL.