getting the last segment of url Get link Facebook X Pinterest Email Other Apps December 22, 2022 const parts = props.location.pathname.split('/');const lastSegment = parts.pop() || parts.pop();alert(lastSegment) Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment