flarum / flarum/framework

[2.X] Internal links don't display correctly in quotes

Open
#5,014 0 comments 0 reactions 0 assignees View on GitHub
type/bug
Dominant language
PHP
Stars
6.7k
Forks
883
Avg merge
15h 16m
Merged PRs (30d)
73

Description

### Current Behavior

Hello,

I encountered a minor bug, visible in Discuss : Internal links aren't displaying correctly in quotes.

Image

### Steps to Reproduce

1- Quote a specific sentence with an internal link

Image

2- Links aren't displaying correctly

Image

### Expected Behavior

**In brut, it's :**

`I’ve already created a GitHub : [![](https://discuss.flarum.org/assets/favicon-9tnghur0.png)#3894144](https://discuss.flarum.org/d/38941-friendsofflarum-move-posts/44)`

**Solution :**

Only the link needs to be copied. The original formatting will remain.

`I’ve already created a GitHub : https://discuss.flarum.org/d/38941-friendsofflarum-move-posts/44`

### Screenshots

_No response_

### Environment

- Flarum 2.0 RC8
- Website URL: https://discuss.flarum.org/
- Browser: Firefox

### Output of `php flarum info`

```
Output of "php flarum info", run this in terminal in your Flarum directory.
```

### Possible Solution

_No response_

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue on Discuss by quoting a sentence containing an internal link, using the steps and examples in the report. Trace the quote rendering path to see where the link's formatting is copied, then verify that the quoted result preserves only the link URL and displays correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.