How to click on link that has an unique id?

This is my element that i got from Inspect Element

<a data-bind="attr: {href: $.rootDir + 'Manage/UserDetail/?id=' + id()}" href="/akki/Manage/UserDetail/?id=0135af0c-7b32-4645-9677-c3e4b8ddaebb"><i class="ion ion-edit" title="Ubah"></i></a>

and this is my XPath


as xpath you can use:


mnn, but this is a dynamic id, so i want to get the id and put into variabel so i can click based on the dynamic id.

This is the link from the button, i wanna get the id from the link


ok, that’s different question than 1st one
you need to parse it or get it from attribute