Misago icon indicating copy to clipboard operation
Misago copied to clipboard

Linking outside Sites

Open DigitDaemon opened this issue 5 years ago • 2 comments

Is there a way that hyperlinks could by default open new tabs instead of redirecting the current one?

DigitDaemon avatar Sep 24 '19 22:09 DigitDaemon

I believe the place to make this adjustment would be here: https://github.com/rafalp/Misago/blob/master/misago/markup/bbcode/inline.py#L81-L96

@rafalp would it be bad to make that default behavior?

AetherUnbound avatar Sep 24 '19 22:09 AetherUnbound

bbcode.inline only adds support for [url] BBCode, it doesn't affect the behavior of the other url's that users post in their messages.

I feel that best way to go about this should be implementing custom posting middleware that would do another pass-over on post content before its saved. Misago also has parsing pipeline that was intended to provide proper extension point for "just" the parser, but that one didn't go anywhere. Perhaps its worth picking up in future releases?

rafalp avatar Sep 24 '19 23:09 rafalp

Let's actually factually do this.

rafalp avatar Nov 16 '22 22:11 rafalp