Wikipedia-Style Redirect

It would be awesome to have a plugin which looks into the Frontmatter for „redirect: „[[Note]]“ and opens it right away (without even displaying the first note for longer than it takes to open the new one).

This was also mentioned here as an alternative to Alias: Aliases for note names - #28 by death.au

Additionally, the plugin should display on the redirected note from where it was redirected from. (Like in Wikipedia).

What do you guys think? Is this even possible or „compatible“ with the obsidian-way of managing notes?

2 Likes

I’d love this to use as a way of setting the homepage for my hosted obsidian vault export, or even for setting the index page for each folder like proposed here, assuming I don’t always want to call the index page Index.md.

1 Like

well thats for exported vaults. what I mean is having a redirect right in obsidian itself.

so for example

  1. I have a note PC.md
  2. but I actually want to open Personal-Computer.md,
    • so I keep the link in all notes ([[PC]]) but
      • add a link inside of PC.md redirecting to Personal-Computer.md

Does this make sense? Am I missing something? :smiley:

Have you looked at Redirect plugin yet?

Thank you for the suggestion! It looks very interesting, but the focus is on files/images only from what I can see. There is a very similar piling out there which’s name I forgot.

This is what I want, but of course a simplified version :sweat_smile: Help:Redirects - MediaWiki

I also just thought about this and what is the main reason I’d love to have this:

  • I have a lot of acronyms. for every acronym I have a note with actual spelling.
  • What I would like to have: it should not matter whether I link to [[lol]] or [[laughing out loud]]
    • I dont want to use [[laughing out loud|lol]] (or the other way around)
  • this is important for backlinks: all links/backlinks should be on one note and not splitted on two!

I actually was hoping that I could simply use alias when I started with obsidian. But alias cant be used for linking.
For example if I have note Moon.md with the alias: Luna.
It would have been so simple to simply link with [[Luna]] to Moon.md. But instead I have to write [[Moond|Luna]], which isn’t optimal.

for this there is already a solution in the form of plugin Auto Linker aka Bare Alias Links by NothingIsLost:

1 Like

I was thinking about this. And I just read this comment: Aliases for note names - #28 by death.au

It gave me the idea that if aliases already exist, it should automatically create a redirect-note.

Obsidian is aware that a alias exist. But when I try to open that alias, it want to create a new note. This doesn’t make any sense IMO. Obsidian should prompt me two times:

  1. when I create a alias: „a redirect-note was created: name-of-alias.md“

  2. if for some reason it was not created an I navigate to the alias directly: „there exists an alias to this note: therefore created name-of-alias.md“

This would also solve another issue: I would like to have a [[note]]-link to a note but also a [[name-or-alias]]-link and not this „workaround“: [[link|name-of-alias]].

What also brought me to this is was reading the solution in quartz for static sites. I basically want this solution also inside of obsidian: AliasRedirects

The hat du you guys think? Could this be accomplished through a plugin or needs this to be a obsidian-core-feature-request?
(I hope not, because that would mean I will never get this solution :sweat_smile:)

Just an idea, but would it be sufficient for you to have that redirect note contain something like the following:

`$= await dv.view("js/redirect", "Personal Computer") `

And then let that script automatically open the main note? This should give you the option to link to the redirect, but it’ll open the main note.

Depending on how you define it, it could be included in the backlink pane or not.

1 Like

Great, sounds like a proper redirect :smile:
Will test it