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="proxy.php?url=https%3A%2F%2Fdocs.%3Cspan+class%3D"pl-e">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="proxy.php?url=https%3A%2F%2Fdocs.%3Cspan+class%3D"pl-e">opencloud.eu/..."
  target="_blank"
>

Version: 4.1.0 rolling

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions