View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0035539 | mantisbt | webpage | public | 2025-03-05 11:55 | 2026-05-14 13:27 |
| Reporter | raspopov | Assigned To | community | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0035539: URL in the Summary field | ||||
| Description | It is possible to insert a URL (link, email or using a markdown) to a summary field of an issue. Is this intended? If so, then it produces invalid HTML of nested | ||||
| Steps To Reproduce | Create an issue with, for example, email in the summary. | ||||
| Additional Information | The Summary field is printed using string_display_line_links() function. | ||||
| Tags | No tags attached. | ||||
I'm not sure what the original intent was to be honest. But it does mess up the display in My View, View Issues, etc. In my opinion, we should not allow any formatting (html, markdown) or replace links in the Summary - it should be plain text. |
|
|
URLs in summary of Azure DevOps work items are plain text / links to the work item in work item list views and in the single work item view.
So this seems to be the typical approach. |
|
|
Alternatively, we can leave this as is, as a feature and cleverly insert a link only up to the first occurrence of '<a ' in the formatted text. |
|
|
Or drop the links, i.e. call string_attribute() instead of string_display_line_links() on the summary when it's displayed as a link ? For the record: |
|
|
PR rebased to 2.28. |
|
|
I tested this, and to be honest I'm not so keen on the way the links look with the "wrapped" links - I find it quite messy and confusing to have multiple hyperlinks. I believe it would be better to process the summary as a single link pointing to the issue's details page. |
|
I also dislike how cluttered it looks, so I took the opposite approach. The links are simply removed before output, but the formatting remains. PR updated. |
|
|
Sorry this was auto-resolved by mistake, due to me pushing the wrong branch to GitHub :-/ |
|
|
Looking good now, will merge shortly |
|
|
MantisBT: master 2b74b361 2025-03-18 12:03 Committer: dregad Details Diff |
Fix URLs in the summary field Summary is now shown as a single link, ignoring nested <a href> tags. Added new string_display_line_without_links() function. Fixes 0035539, PR https://github.com/mantisbt/mantisbt/pull/2124 |
Affected Issues 0035539 |
|
| mod - core/columns_api.php | Diff File | ||
| mod - core/string_api.php | Diff File | ||
| mod - my_view_inc.php | Diff File | ||