Stack Overflow Question Routing

后端 未结 3 1908
北海茫月
北海茫月 2020-12-11 09:01

If you review a SO question URL you will see that an ID and a \"SLUG\" are passed to the Questions controller: https://stackoverflow.com/questions/676934/what-do-you-need-to

3条回答
  •  不思量自难忘°
    2020-12-11 09:11

    You don't need to use the slug at all. It's probably just there for human readability and search engine optimization. You can ignore it when routing and just work up to the ID.

    For instance, click here:

    Stack Overflow Question Routing

提交回复
热议问题