주제/글이 아닌 항목(예: 채팅)을 북마크할 경우, /activity/bookmarks의 활동 셀에서 post_id가 정의되지 않습니다. lastPostUrl(highestPostNumber) 함수 이후 highest_post_number가 /t/undefined가 되어, /t/id_for/undefined를 로드하는 동안 액세스가 거부되어 ‘해당 항목을 볼 권한이 없습니다.’ 페이지로 연결됩니다.
이 커밋은 해당 상황에서 링크를 정확한 this.bookmarkable_url로 변경하여 문제를 해결합니다.
main ← small-lovely-cat:fix-bookmark-undefined
merged 03:30PM - 30 Dec 25 UTC
When bookmarking an item besides topic/post (e.g. chat), the `post_id` in the ac… tivity cell of `/activity/bookmarks` will be underfined, after the:
```js
@discourseComputed("highest_post_number", "url")
lastPostUrl(highestPostNumber) {
return this.urlForPostNumber(highestPostNumber);
}
```
function, the `highest_post_number` will be `/t/undefined`, and linking to the `Access Denied
while trying to load /t/id_for/undefined You're not allowed to view that.` page.
This commit changed the link under such circumstance to the exact`this.bookmarkable_url`, so that the issue is solved.
Before:
<img width="1211" height="373" alt="image" src="https://github.com/user-attachments/assets/bb9b21d7-7399-4c0d-960b-37a194377e59" />
After:
<img width="1208" height="375" alt="image" src="https://github.com/user-attachments/assets/a016b234-0933-4309-a132-f47e55dc5c72" />