2 small URL Bugs

未关闭 适合新手
#8,834 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript, php
领域
frontend

调研方向

从 Deck 的棋盘和卡片 URL 路由 /apps/deck/board/[boardNumber]/ 和 /apps/deck/board/[boardNumber]/card/[cardNumber] 开始。跟踪尾部斜杠如何匹配,以及移动卡片时如何同时更新侧边栏状态和浏览器 URL。完成的标准是:带尾部斜杠时加载棋盘而不是返回 404;打开或移动卡片时绝不留下会导致空白棋盘的过期卡片标识符。

由索引模型根据 Issue 内容生成。

描述

1. to develop bug
How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Describe the bug

  1. https://[domain]/apps/deck/board/[boardNumber]/ - the trailing slash leads to a 404

  2. https://[domain]/apps/deck/board/[boardNumber]/card/[someCardNumberThatHasSinceBeenMoved] - shows empty board

  • After moving a card away from the current board, the UI doesn't remove the card number from the URL. No issue for me if that would still be a valid URL.

To Reproduce
Go to the URLs in a NC Test installation (replace the numbers).

Expected behavior

  1. trailing slashes don't create 404, but act as if there was no trailing slash
  2. Still show the board, just with no card in the sidebar.
  • If a card is moved, the sidebar is closed and the URL changed.

Screenshots
1)
image

  1. Directly after moving the card t2:
image After reloading I see no cards at all: image

Client details:

  • OS: Linux
  • Browser LibreWolf
  • Version 147
  • Device: [not relevant]
Server details

Operating system: [not relevant]

Web server: [not relevant]

Database: [not relevant]

PHP version: 8.5.13

Nextcloud version: (see Nextcloud admin page) 34.0.6

Where did you install Nextcloud from: Docker

Signing status:

No errors have been found.

List of activated apps:

[not relevant

Nextcloud configuration:

[not relevant]

Are you using an external user-backend, if yes which one: [not relevant]

Logs
Nextcloud log (data/nextcloud.log)
[deck] Fehlersuche: OCA\Deck\Controller\BoardController::index returned raw data. Please wrap it in a Response or one of it's inheritors.
	GET /apps/deck/boards
	von [...] von [...] um 01.12.2026, 13:10:43
Browser log
[no logs from the deck-app; just in example 1 the 404 reply]
主要语言
JavaScript
星标
1.4k
派生
380
平均合并
1 天 17 小时
30 天内合并 PR
72

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/deck 的其他 Issue

查看 nextcloud/deck 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。