Skip to content

[Bug] Application chat-log fallback route is malformed #6367

Description

@zhonggang666

Problem Description

When the application list falls back to the chat-log permission branch, it returns a malformed route:

/application//workspace${item.id}/${item.type}/chat-log

This does not match the registered application detail route /application/:from/:id/:type.

Code Location

  • ui/src/views/application/index.vue:737
  • Matching route definition: ui/src/router/modules/application-detail.ts:8

Steps to Reproduce

  1. Use an account/role that can read an application chat log but does not satisfy the earlier overview/edit/access/chat-user permission branches in getApplicationUrl.
  2. Open the application list.
  3. Click the application card/list item.

Actual Result

The generated URL is shaped like:

/application//workspace<application_id>/<type>/chat-log

The path has an extra / after application and misses the / between workspace and the application id, so it cannot match the expected route.

Expected Result

The fallback chat-log URL should be:

/application/workspace/${item.id}/${item.type}/chat-log

MaxKB Version

Current v2 branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions