{"record":{"id":"0cd5e73e6d7289e7","repo":"forem/forem","slug":"invalid-slideshare-key","errorCode":null,"errorMessage":"Invalid Slideshare Key","messagePattern":"Invalid Slideshare Key","errorType":"exception","errorClass":"StandardError","httpStatus":null,"severity":"error","filePath":"app/liquid_tags/slideshare_tag.rb","lineNumber":28,"sourceCode":"    stripped_input = strip_tags(input)\n    @key = parse_input(stripped_input)\n  end\n\n  def render(_context)\n    ApplicationController.render(\n      partial: PARTIAL,\n      locals: {\n        key: @key,\n        height: 487\n      },\n    )\n  end\n\n  private\n\n  def parse_input(input)\n    match = pattern_match_for(input, REGEXP_OPTIONS)\n    raise StandardError, I18n.t(\"liquid_tags.slideshare_tag.invalid_slideshare_key\") unless match\n\n    match[:id]\n  end\nend\n\nLiquid::Template.register_tag(\"slideshare\", SlideshareTag)\n\nUnifiedEmbed.register(SlideshareTag, regexp: SlideshareTag::REGISTRY_REGEXP)\n","sourceCodeStart":10,"sourceCodeEnd":37,"githubUrl":"https://github.com/forem/forem/blob/f354c376a7c5d1330dc40d66f150be8d1289020d/app/liquid_tags/slideshare_tag.rb#L10-L37","documentation":"Forem's {% slideshare %} tag accepts either the embed URL https://(www.)slideshare.net/slideshow/embed_code/key/<12-14 word characters> or a bare 12-14 character key; parse_input raises when input matches neither regexp.","triggerScenarios":"Pasting the canonical viewer URL (slideshare.net/username/slug — no embed_code/key segment), an embed key shorter than 12 or longer than 14 chars, or a URL with query params after the key that break the word-character run raise at app/liquid_tags/slideshare_tag.rb:28.","commonSituations":"Users copying the address-bar URL instead of the iframe embed URL from Slideshare's share dialog; Slideshare changing key lengths outside 12-14; HTML-escaped ampersands or trailing slashes breaking the match.","solutions":["Open the deck's Share -> Embed dialog and copy the embed_code/key URL: {% slideshare https://www.slideshare.net/slideshow/embed_code/key/AbCdEf123456 %}.","Alternatively pass just the 12-14 character key: {% slideshare AbCdEf123456 %}.","If the key length falls outside 12-14, the tag cannot embed it — link the deck plainly instead."],"exampleFix":"// before\n{% slideshare https://www.slideshare.net/jdoe/introducing-foo %}\n\n// after\n{% slideshare https://www.slideshare.net/slideshow/embed_code/key/FxYzAbC12345 %}","handlingStrategy":"validation","validationCode":"SLIDESHARE_OK = %r{\\A(https://(www\\.)?slideshare\\.net/slideshow/embed_code/key/)?\\w{12,14}\\z}\ndef slideshare_embeddable?(input)\n  input.strip.match?(SLIDESHARE_OK)\nend","typeGuard":null,"tryCatchPattern":"begin\n  Liquid::Template.parse(markdown).render\nrescue StandardError => e\n  show_editor_error(e.message)\nend","preventionTips":["Extract embed URLs from Slideshare's Share -> Embed dialog, never the address bar.","If you only have the page URL, extract nothing — this tag needs the embed_code/key form.","Check key length stays within 12-14 word characters."],"tags":["liquid","slideshare","forem","url-validation","embed-key"],"backgroundTag":"liquid-tag-validation-error","analyzedSha":"f354c376a7c5d1330dc40d66f150be8d1289020d","analyzedAt":"2026-08-21T12:43:44.428Z","schemaVersion":2},"datasetVersion":"2026-08-21T13:17:26.733Z"}