Bug 170592 - remove AI additions from URL in copied text (paste from AI without additions in URLs)
Summary: remove AI additions from URL in copied text (paste from AI without additions ...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.8.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks:
 
Reported: 2026-02-03 23:22 UTC by Edmund Laugasson
Modified: 2026-02-04 10:15 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Current situation, where in every URL is that addition from AI, which is needed to remove (usually). This dialog opens with CTRL+K on hyperlink to edit it. (34.51 KB, image/png)
2026-02-03 23:22 UTC, Edmund Laugasson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Edmund Laugasson 2026-02-03 23:22:36 UTC
Created attachment 205348 [details]
Current situation, where in every URL is that addition from AI, which is needed to remove (usually). This dialog opens with CTRL+K on hyperlink to edit it.

First issue with ChatGPT.
Whenever to copy text with URLs from ChatGPT, there will be added to every URL appendix "?utm_source=chatgpt.com". Hereby propose to add functionality to remove in whole document that appendix from all URLs.

Ideas to solve:
- in settings to remove automatically (can be turned on/off)
- in UI e.g. toolbar button + menu item
- in Search and Replace dialog
- Paste Special (CTRL+SHIFT+V) - without AI additions could be one choice (also configure options for that)

Also would be good to allow to configure, will be searched to remove as this might be changed in future and not be, like current "?utm_source=chatgpt.com" but it could be any other combination of text.

Also other AI text might contain any other appendix in URLs - therefore would be appreciated to allow define multiple items, what to search and what to do - remove or replace with certain text.
Comment 1 Edmund Laugasson 2026-02-03 23:33:49 UTC
Basically, in short: paste from AI without additions in URLs
Comment 2 Buovjaga 2026-02-04 07:41:07 UTC
Wouldn't this be better solved by a browser extension or user script? LibreOffice injecting itself into this process would happen at the wrong point.
Comment 3 Edmund Laugasson 2026-02-04 09:49:05 UTC
But we are using LibreOffice Writer as text editor. Then we should use some other text editor - then people do not use LibreOffice as they need to copy text from AI without complexity. We are copying directly and editing it with something is very tricky as formatting goes lost then.
Comment 4 Buovjaga 2026-02-04 09:56:42 UTC
There is an existing report about finding & replacing within link URLs: bug 58096
I would prefer to go with that solution.

Intercepting pastes would affect performance.
Comment 5 Heiko Tietze 2026-02-04 10:15:30 UTC
Dislike the idea to fiddle around with pasted URLs. I use to remove ?System=UNIX&DbPAR=WRITER&HID=SW_HID_EDIT_WIN#bm_id3147244 from links to our own help page just to shorten the link. Should we also drop this? Or something like https://www.google.com/search?q=libreoffice&sca_esv=e2532f7e453b1d7f&source=hp&ei=qhuDaev9NYLIi-gPuob46AE&iflsig=AFdpzrgAAAAAaYMpuhcsgeKJqO0bxSQZq2XZ0ysIrS12&ved=0ahUKEwjr-rDnzL-SAxUC5AIHHToDHh0Q4dUDCCg&uact=5&oq=libreoffice&gs_lp=Egdnd3Mtd2l6IgtsaWJyZW9mZmljZTIFEAAYgAQyBRAAGIAEMgUQABiABDIFEAAYgAQyBRAAGIAEMgUQABiABDIFEAAYgAQyBRAAGIAEMgUQABiABDIFEAAYgARI0QxQAFjlC3AAeACQAQCYAU6gAdgEqgECMTG4AQPIAQD4AQGYAgugAvgEwgILEC4YgAQY0QMYxwHCAgUQLhiABMICCBAAGIAEGMkDwgILEAAYgAQYkgMYigWYAwCSBwIxMaAHxk2yBwIxMbgH-ATCBwUwLjcuNMgHF4AIAA&sclient=gws-wiz

If we had a general rule like "[ ] Remove query string" under the URL, maybe. But not limited to a particular page.