Composite links

Use case or problem

When a file contains a lot of reference to similar locations, the shared part of the links could be stored as an independent one so the others only use the variant part as an appendix.

Example as of today:

---
title: My Posts on Obsidian's forum
---
[obsidian-forum]: https://forum.obsidian.md/

Here is the list of Feature Requests and Bug Reports I submitted on [Obsidian's forum][obsidian-forum]:
- Feature Request [Foldable CSS snippets (in Settings/Appearance)(https://forum.obsidian.md/t//9744) in December 2020
- Bug Report [Automatic line breaks split arrow ligature -> to - >](https://forum.obsidian.md/t//13759) in December 2020
- Feature Request [Directory Aliases](https://forum.obsidian.md/t//34487) in March 2022

What it would look like with the composed links:

---
title: My Posts on Obsidian's forum
---
[obsidian-forum]: https://forum.obsidian.md/
[forum-post]: https://forum.obsidian.md/t/

Here is the list of Feature Requests and Bug Reports I submitted on [Obsidian's forum][obsidian-forum]:
- Feature Request [Foldable CSS snippets (in Settings/Appearance)[forum-post/9744] in December 2020
- Bug Report [Automatic line breaks split arrow ligature -> to - >][forum-post/13759] in December 2020
- Feature Request [Directory Aliases][forum-post/34487] in March 2022

We could even consider a deeper level of composition like:

[obsidian-forum]: https://forum.obsidian.md
[forum-post]: [obsidian-forum]/t

My [cool link][forum-post/composite-links/34488]

Proposed solution

Additional URL parts could be append at the end of Reference links.

Current workaround (optional)

Using a custom webserver to have a localhost tiny-url type of service with URIs like http://localhost/obidian-forum-post/34488.

Related feature requests (optional)

This could be a nice solution for the Directory Alias Feature Request if we consider having a link like:

[wpjt]: work/projects

- [ ] improve some things on [[wpjt/amazing|amazing]]

See the other Feature Request for context.

1 Like