URL 分为若干部分,slug 是其中路径的最后一段。
https://example.com/blog/hello-world?ref=home 可分为协议(https)、域名(example.com)、路径(/blog/hello-world)和查询(?ref=home)。slug 就是路径的最后一段 hello-world。
slug 是用户会阅读、记忆和分享的部分,因此干净、有意义的 slug 能提升信任度和点击率。