[PR #2629] [MERGED] fix(frontend): guard caldav and totp settings routes when disabled #5779

Closed
opened 2026-04-16 13:51:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2629
Author: @tink-bot
Created: 4/15/2026
Status: Merged
Merged: 4/15/2026
Merged by: @kolaente

Base: mainHead: fix-caldav-totp-router-guards


📝 Commits (1)

  • 29ccd30 fix(frontend): guard caldav and totp settings routes when disabled

📊 Changes

1 file changed (+12 additions, -0 deletions)

View changed files

📝 frontend/src/router/index.ts (+12 -0)

📄 Description

Users could navigate directly to caldav or TOTP settings pages even when those features were disabled, landing on a blank shell. Adds beforeEnter router guards that redirect to general settings when the feature is disabled (or the user is not local, for TOTP).

Fixes #495


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/2629 **Author:** [@tink-bot](https://github.com/tink-bot) **Created:** 4/15/2026 **Status:** ✅ Merged **Merged:** 4/15/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `fix-caldav-totp-router-guards` --- ### 📝 Commits (1) - [`29ccd30`](https://github.com/go-vikunja/vikunja/commit/29ccd306a8114d4b9cf6c3ccddd9db1281e24a07) fix(frontend): guard caldav and totp settings routes when disabled ### 📊 Changes **1 file changed** (+12 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/router/index.ts` (+12 -0) </details> ### 📄 Description Users could navigate directly to caldav or TOTP settings pages even when those features were disabled, landing on a blank shell. Adds `beforeEnter` router guards that redirect to general settings when the feature is disabled (or the user is not local, for TOTP). Fixes #495 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 13:51:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#5779