Skip to content

Links are broken in dynamic blocks when the task has the cookies [/] or [%] #248

@maikol-solis

Description

@maikol-solis

According to the org-mode docs (https://orgmode.org/manual/Breaking-Down-Tasks.html) we can add cookies to split tasks into subtasks.

However, the dynamic block broke the links for all the tasks having these cookies, because it adds the information of the cookie within the link.

In the example below, in the dynamic block, if you click in the Task 1, it doesn't go to anywhere because the right link should be [[Task 1][Task 1​]]

#+BEGIN: org-ql :query (and (planning :from "2021-08-21" :to "2021-08-30") (todo)) :columns (todo (priority "P") deadline heading)  :ts-format "%Y-%m-%d %H:%M"
| Todo | P | Deadline         | Heading                          |
|------+---+------------------+----------------------------------|
| TODO | B | 2021-08-23 00:00 | [[Task 1 \[1/2\]][Task 1 [1/2]​]] |
| TODO |   | 2021-08-27 00:00 | [[Subtask 2][Subtask 2]]         |
| TODO | A | 2021-08-27 00:00 | [[Task 2][Task 2]]               |
#+END:

* TODO [#B] Task 1 [1/2]
DEADLINE: <2021-08-23 Mon>
** DONE Subtask 1
DEADLINE: <2021-08-24 Tue>
** TODO Subtask 2
DEADLINE: <2021-08-27 Fri>
* TODO [#A] Task 2
DEADLINE: <2021-08-27 Fri>

Thanks.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions