Use takanaHref if available

Creating a PR so you can review. I still need to add tests for this.