You could of course build the string pointing to the respective URL dynamically.
A first option would be using a javascript function. However, even this function has to take the IDs from somewhere. In my example, I suppose that there are javascript variables which already contain the right IDs.
function createDynamicURL()
{
//The variable to be returned
var URL;
//The variables containing the respective IDs
var companyID=...
var branchID=...
var employeeID=...
//Forming the variable to return
URL+="company=";
URL+=companyID;
URL+="/branch=";
URL+=branchID;
URL+="/employee=";
URL+=employeeID;
URL+="/info";
return URL;
}
Then your html would be like:
<a href="javascript:window.location=createDynamicURL();" > employee info </a>
Another, more elegant solution would be to use the onClick event:
<a href="#" onclick="RedirectURL();return false;" > employee info </a>
with the function
function RedirectURL()
{
window.location= createDynamicURL();
}
Hope I helped!