windows.location is copying the old path with new one

windows.location is copying the old path with new one

I have a page login.aspx, it has a link <a href= "webfolder/abc.aspx"
on click it opens properly but when i open another link which is on abc.aspx,
link <a href = "webfolder/abc1.aspx"> this one does not opens instead.
it copies webfolder/webfoldertwoice.

i wanted to understand the process, because i tried windows.location and equivalent but they all behaved  in then same way.