Slug is a term used in many CMS. Borrowed from newspapers. Informal name of a thing during its production.

The fact that it can be replaced by random names is implementation specific. e.g.:

https://ccc.xom/123/slug-bananas
https://ccc.xom/123/slug-something else

As the 123 is the actual id