next-last-path (npm): Returns the last path from a Next.js route.
Keywords: react|next|nextjs|next.js|next.js plugin|next.js router|next.js route|next.js path|next.js last path|next.js last route