In the most recent version of @appland/components, a click-link event is emitted from the frontend when the user clicks a non-http(s) URL from within Navie. It provides a single argument, which is the href of the link clicked. This event should be handled to open the file in the main editor.
The href sent:
May or may not contain a file: protocol
May be a relative path, and for this reason, may be ambiguous
In the most recent version of
@appland/components
, aclick-link
event is emitted from the frontend when the user clicks a non-http(s) URL from within Navie. It provides a single argument, which is the href of the link clicked. This event should be handled to open the file in the main editor.The href sent:
file:
protocolE.g.:
A best effort should be made to open the file given. In ambiguous cases, it's okay for now to select the best (or first) match.
Here's the implementation in Visual Studio Code: https://github.com/getappmap/vscode-appland/pull/1049/commits/33e9a63e6c511fad4a761a03400ab116530180b5