ZF2 routing in links not working correctly

I’m trying to implement the best standards for an application I am working on for a client. There are multiple links on the page which make AJAX calls. These links are hard coded like href=“graph/page-name”. These don’t work as the full url would be webapp.foo-bar.com/v2/app. I’m trying to configure the app or controllers to use the v2/app without touching the already existing links, as when hovering over the link I’ll get webapp.foo-bar.com/graph/page-name.

Really hope someone can help as we will need to go down another Virtual Host to set this app up which I feel might not be best standard.

Thanks,
Kieran