[Home] [By Thread] [By Date] [Recent Entries]
> Yes, avoiding querystrings when you want the deferenced item to be > accessed by bots, or when the item should be idempotent, would seem a > good best practice. > > But a follow-on question might be: when is it a good idea to use > querystrings? I don't think there is a standard, but my idea would be to use /hierarchical/URI/parts/ as long as possible, e.g. as long as the next step expressed by the parameter is indeed a hierarchic partitioning of the content at the parent element, in a "real world" meaning. After that, use query string parameters for non hierarchic partitions, e.g. "?color=blue" or "?from=10". I do realise that "?from=10" can be understood as a hierarchy thing, but I'd argue that it's not a hierarchy in e.g. the pizza delivery services, but on my web page. So, use the query string if your querying of the data, and use the URI if your navigating through the data. Martin
|

Cart



