fixed relative path issue for angular's pretty url.