This repository was archived by the owner on Mar 25, 2023. It is now read-only.
mount-point: auto link rewrite #591
amitu
started this conversation in
Ideas & RFC
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If an app
fifthtry.github.io/todos/
is mounted onamitu.com/todos/
, andfifthtry.github.io/todos/index.ftd
contains a link tofifthtry.github.io/todos/add-todo.ftd
, what would it write?If the
fifthtry.github.io/todos/
was the main package, we could have usedDirect Links
:But
fifthtry.github.io/todos/
is a dependency, so we can write,Dependency Link
.But since we are using mount-point, the URL should be
Mount-Point Link
:So which one of this would be actually be present in
fifthtry.github.io/todos/index.ftd
?Mount-Point Link
is impossible answer here. And Direct Link will 404. So only option is Dependency Link, which will work both whenfifthtry.github.io/todos/
is main package or a mounted dependency. But Mount Point Link is the best link from Clean URL perspective.Auto Link Rewrite
Links can be present at only well known places in a document: a. markdown, b. http processor, c.
link
attribute and d. object for frontend.We can find out the current document's context (is it main package or a dependency, and if dependency if it has a mount point associated), and automatically generate the Mount Point Link everywhere.
Beta Was this translation helpful? Give feedback.
All reactions