Trailing slash before a query string. Bad practice?

前端 未结 1 728
半阙折子戏
半阙折子戏 2020-12-17 16:12

I have a URL like www.example.com/store/, which leads to a store page

When a user clicks on a discount link, it adds the parameter ?discount=foo

相关标签:
1条回答
  • 2020-12-17 16:53

    It’s valid:

    1. The path component may end with a slash (/).
    2. The query component starts with the first question mark (?) in the URI.
    0 讨论(0)
提交回复
热议问题