Safari JS Bug? window.location.href acts strange

Assume there're two web application named myapp, myhomeapp


myapp deployed on http://somesite.com/myapp

myhomeapp deployed on http://somesite.com (do some trick on HTTP Server and AppServer)


both webapp has same code on index.html

window.location.href="anotherpage.jsp"


on Safari 8.0, it works fine for both site.

on Safari 8.1, myhomeapp still works fine, but myapp doesn't work, seems window.location.href cannot find "anotherpage.jsp"


Something changed for relative URL parsing in javascript?