0

I need your help.
I have this link: https://domen.org/bbb/bb/bb/uniqueID
the link may change, but the unique id is always at the end
I'm use: window.location.pathname.split('/')[2]
but since the length of the link changes, I can't catch it all the time, how can I optimize this?
I only need to get the last link ID example: https://domen.org/bb/uniqueID

0 Answers0