How to get the last page url once i am in next url without pressing back

can anyone please help me? how to get the last page url once i am in next url without pressing back which will help me to get the name from the url.

store all urls in a list and get the last page url from the list then
Taifun

1 Like

I did that but i dont understand how can i take the last url from the list can you please show me the block…that would be really helpful…Thank you.