You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noted that authenticated links were breaking with signature failures, and tracing it down found that the link being returned is not the same as the link being clicked. example:
#!/usr/bin/python3fromtextual.appimportApp, ComposeResultfromtextual.widgetsimportMarkdowntext="""Here is an image of a dog created with DALL-E 3:![Dog](https://some.site.us/tool?st=2024-12-22T18%3A07%3A22Z&se=2024-12-22T20%3A07%3A22Z)"""log_file="linktest.txt"classMyApp(App):
defcompose(self) ->ComposeResult:
self.md=Markdown(markdown=text)
yieldself.mddefon_markdown_link_clicked(self, message: Markdown.LinkClicked):
withopen(log_file, "w") asf:
f.write(f"Original message={text}\n")
f.write(f"Link received={message.href}\n")
if__name__=="__main__":
app=MyApp()
app.run()
Output:
Original message=
Here is an image of a dog created with DALL-E 3:
![Dog](https://some.site.us/tool?st=2024-12-22T18%3A07%3A22Z&se=2024-12-22T20%3A07%3A22Z)
Link received=https://some.site.us/tool?st=2024-12-22T18:07:22Z&se=2024-12-22T20:07:22Z
Note the decoding. I would expect that the link received would be identical to the link in the Markdown.
The text was updated successfully, but these errors were encountered:
Noted that authenticated links were breaking with signature failures, and tracing it down found that the link being returned is not the same as the link being clicked. example:
Output:
Note the decoding. I would expect that the link received would be identical to the link in the Markdown.
The text was updated successfully, but these errors were encountered: