Skip to content

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

@michaelstingl

Description

@michaelstingl

Bug Description

accountCalendar.vue uses type="router-link" with external href, causing a Vue Router error.

Source: accountCalendar.vue#L17-L25

<oc-button
  type="router-link"
  href="https://docs.opencloud.eu/..."
>

OcButton with type="router-link" renders as <router-link>, which expects to prop, not href.

Sources:

Reproduction Steps

  1. Disable Radicale (default)
  2. Navigate to /account/calendar
  3. Open browser console

Expected Outcome

Link "here" renders and opens documentation.

Actual Outcome

  • Console: TypeError: undefined is not an object (evaluating 'i.path') in vue-router
  • HTML shows <!----> where button should be
  • Text ends with "...click" without link
Image

Fix

<oc-button
  type="a"
  href="https://docs.opencloud.eu/..."
  target="_blank"
>

Version: 4.1.0 rolling

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions