@ sign as url parameter separator?

前端 未结 1 1905
花落未央
花落未央 2021-01-23 15:28

While browsing the new Google Maps I saw that they are using an @ sign instead of ? to seperate the url-path from the query parameters, like:

h

1条回答
  •  无人及你
    2021-01-23 15:51

    @38.1158476,-96.2044115,6z is not the query component. It’s still part of the path component.

    The @ character can be used in the path, even without percent-encoding it.

    So from the URI standard perspective, there is nothing special about this URI. There could have been used any other (or no) character instead.

    I assume Google uses the @ here because users might read it as "at", which is suitable for "at ".

    0 讨论(0)
提交回复
热议问题