Properties2
| Type | Practice |
| Note created | Mar 21, 2026 |
Since I make extensive use of Index notes in Notebook Navigator, I wanted the folder containing my daily notes to redirect me to today’s note. That is not something natively supported by Notebook Navigator, so I designed this Dataview snippet to perform a redirect, calling openLinkText after a short delay to avoid a race condition with rendering:
Redirecting...
---
```dataviewjs
const REDIRECT_DELAY_MS = 200;
const today = moment().format("YYYY-MM-DD");
const path = `Personal/Journal/${today}`;
setTimeout(() => app.workspace.openLinkText(path, "", false), REDIRECT_DELAY_MS);
```
Requires the Dataview plugin with Enable JavaScript Queries turned on. The setTimeout is needed because the dataviewjs block doesn’t reliably execute openLinkText on file open without it.