Copy link doesn't capture the full URL; ignores the query string

dhein's Avatar

dhein

15 Feb, 2023 10:51 PM

// Please enter a detailed description of the issue // Description of the issue: When I right click a link and say ‘copy link’, what ends up in the clipboard is not the entire URL, just everything up to the ‘?’. e.g. a link like "https://www.youtube.com/watch?v=tAFLFRIyKqk&list=PL-qvsLbZq06Lv... ends up with just “https://www.youtube.com/watch” in the clipboard. Not that useful, in many cases.

// Please enter a list of steps required to reproduce the issue // Steps to reproduce:

  1. Create a MD document with a link like Part 1 in it.
  2. View the document using Marked 2, and right click on the link, and select ‘Copy Link’.
  3. Paste the contents of the clipboard in a text editor for inspection. See that it is not the full URL.

// If applicable please attach a sample document that causes the issue for you.

// Configuration (do not edit) Marked 2 1040 (Direct)

macOS Version: 12.6.3

additionalMathJaxConfig:
allowPageBreakInCode: YES
bookTxtIsLeanpub: NO
summaryMdIsGitBook: NO
codeIsPoetry: NO
codeCanWrap: YES
collapsibleHeadlines: NO
convertGithubCheckboxes: YES
convertGithubEmoji: YES
convertYAMLToMMD: NO
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 101
defaultProcessor: MultiMarkdown
enableMiniMap: NO
excludeBlockQuotesFromCounts: NO
excludeFootnotesFromCounts: NO
excludeVerbatimFromCounts: NO
excludeCaptionsFromCounts: NO
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: YES
h1IsPageBreak: NO
h2IsPageBreak: NO
hrIsPageBreak: NO
includeMathJax: YES
includeKatex: NO
limitTextWidth: NO
mathNumberEquations: NO
mathNumberEquationsSide: 0
mathNumberEquationsAMSOnly: NO
minimalJavaScript: NO
outlineModeExtensions:
permissionGranted: NO
printHeaderBottomLeft:
printHeaderBottomRight:
printHeaderFirstPage: NO
printFooterFirstPage: NO
printHeaderTopLeft:
printHeaderTopRight:
processHTMLFiles: YES
removeMetadataForPreview: NO
removeYAMLHeaders: NO
scrollToEdit: YES
shouldDetectCritic: YES
shouldHighlightMarkupErrors: NO
shouldLoadCritic: NO
syntaxHighlight: YES
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
customMarkdownProcessor:
useCustomPreprocessor: NO
customPreprocessor:
useFirstH1AsPrintTitle: YES

  1. Support Staff 1 Posted by Brett on 16 Feb, 2023 02:23 PM

    Brett's Avatar

    I will test and look into this, thanks for the report.

    Thanks,
    Brett
    On Feb 15, 2023 at 4:54 PM -0600, dhein <[email blocked]>, wrote:

  2. Support Staff 2 Posted by Brett on 16 Feb, 2023 03:02 PM

    Brett's Avatar

    Ok, I can confirm this behavior and will have to dig in. Notably, if you click and hold until it blinks so that the popover comes up (assuming it's enabled in Preview preferences), that version of Copy URL works fine. I'll try to have the contextual menu version fixed up for the next update.

    -Brett

    On 15 Feb 2023, at 16:54, dhein wrote:

  3. 3 Posted by dhein on 16 Feb, 2023 09:46 PM

    dhein's Avatar

    For some reason I hadn’t been aware of the popover feature for links. Nice feature, though not a gesture I’d have tried on my own. Glad to have a workaround; thanks!

    — Dave

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac