bitovi/canjs — pull request #479 by veljkodragsic (2013-09-17 12:23:09+00:00)
Title: In pushstate check hostname before updating the route.

On navigating to another domain (while pushstate is enabled) it first checked if pathname in URL exists among defined routes on current page, if so the user would be first redirected (in `can.route.updateWith`) to the matched route and then to another domain, so first the hostname should be checked to prevent that.

For example, navigating from `canjs.com/foo` to `bitovi.com/bar` would first redirect to `canjs.com/bar` (if route `/bar` exists on canjs.com) and then to `bitovi.com/bar`.