Skip to content

Conversation

@michaelstingl
Copy link

Description

Fix external documentation link in Calendar page that was using type="router-link" instead of type="a".

Also adds documentation examples for the type prop to clarify usage.

Related Issue

How Has This Been Tested?

  • test environment: OpenCloud 4.1.0 rolling
  • test case 1: Navigate to /account/calendar with Radicale disabled, verify "here" link renders
  • test case 2: Click link, verify it opens docs in new tab

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

type="router-link" with external href causes Vue Router error.
External links should use type="a".

Fixes opencloud-eu#1800
Copilot AI review requested due to automatic review settings December 30, 2025 11:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where an external documentation link in the Calendar page was incorrectly using type="router-link" instead of type="a". The fix ensures the link properly opens in a new tab. Additionally, documentation examples are added to clarify the correct usage of the type prop for different link scenarios.

Key Changes:

  • Fixed external link type from router-link to a with target="_blank"
  • Added documentation section with examples for both external links and internal navigation

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/web-runtime/src/pages/account/accountCalendar.vue Fixed button type from router-link to a for external documentation link and added target="_blank" to open in new tab
packages/design-system/docs/components/OcButton/OcButton.md Added "Links" section with examples demonstrating correct usage of type="a" for external links and type="router-link" for internal navigation

The changes are well-implemented and follow the existing codebase patterns. The bug fix is straightforward and correct - using type="router-link" for an external URL would not function properly since Vue Router is designed for internal navigation. The documentation additions provide clear guidance to prevent similar issues in the future.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calendar: type="router-link" with external href causes Vue Router error

1 participant