Issue with getting url or href link of a ui element

Hello guys I have this html table on a website , each paper clip there holds an embedded url, however when i use get attribute to get the url this is what it returns :
https://domainName/webcivilcj/CIVILCaseJacketWeb/pages/civilCaseSearch.faces#
but when i click the click manually it opens a new tab with the url as : https://domainName/CIVILCaseJacketWeb/pages/civilCaseSummary.faces?cid=24509

where cid number is unique for each filling links . how do i return this cid to accurately know what document opens after a click.

i have also noticed there is some java script function that occurs onclick of each paper clip icon, is there anyway i can utilize this to get the cid?

Hello @MasterOfLogic ,

Are you able to seen the cid as an attribute??

If yes can you get it and modify the url using automation.