How do you use `context` (if at all)?

One context-related issue I’ve encountered which hasn’t been canvased yet, is that context could be used to set the canonical url of a forum topic. When I say I’ve encountered this issue, it’s some feedback we’ve received on the plugin. See further

And the subsequent discussion.

What I’m currently thinking is the following:

  1. When working with a topic (thread etc)
  2. If a Note in that topic has a resolvable context
  3. If the context resolves to a Collection.
  4. Use a resolvable URL for the Collection as the canonical url
    • My current candidate for a “resolvable url” is the url property of the Collection as the Discourse plugin already serializes the topic url as the url of Topic Collections.

Interested in thoughts on any of the above.