mastodon-redirector icon indicating copy to clipboard operation
mastodon-redirector copied to clipboard

Extention press not working - no redirect

Open bashfulrobot opened this issue 3 years ago • 6 comments

Hi there, I just installed the most recent chrome extension, set my instance URL, and went to test, but nothing happens when I press the extension button. I recorded my screen to show the steps.

https://user-images.githubusercontent.com/10782881/203829194-5ed6cf2d-9e90-41b9-ba82-1d4cd81653b3.mp4

Ideas?

bashfulrobot avatar Nov 24 '22 16:11 bashfulrobot

I think this is a hachyderm.io configuration issue.

When configuring the extension to the values as you’ve shown in the video, I see that the extension correctly tries to go to https://hachyderm.io/@[email protected]. However, that URL then simply redirects back to https://fosstodon.org/@libreoffice again, so you end up back where you started.

bramus avatar Nov 24 '22 19:11 bramus

Just encountered this myself: it happens when you’re not logged in to the other server. For example, visiting https://mastodon.social/@[email protected] in an incognito window will automatically redirect you to https://front-end.social/@bramus

bramus avatar Nov 24 '22 21:11 bramus

Do you have any suggestions on what I should ask the admins to check? I am not familiar with Mastodon config from a server POV.

bashfulrobot avatar Nov 25 '22 00:11 bashfulrobot

I've been playing around with this extension yesterday, and noticed the same. I have just filed the PR above, which attempts to extract the username from the current URL, rather than from the page URL, which appears to be more reliable.

@bramus let me know what you think.

I believe the current version of extracting the username from the HTML fails, when the user you are looking at is actually a remote user. I.e. when you are on hachyderm.io/@[email protected] it will fail, while hachyderm.io/@foo will will. Additionally it also fails on some instances when you are already logged in on that instance (maybe because you have accounts at two instances).

nanos avatar Nov 25 '22 07:11 nanos

I rewrote some of the username detection logic in 0.3.0 and now just released 0.4.0. Does the problem still occur in those versions?

(Note that the Chrome Web Store hasn’t published the update at the time of posting this)

bramus avatar Sep 07 '23 19:09 bramus

I think this is a hachyderm.io configuration issue.

When configuring the extension to the values as you’ve shown in the video, I see that the extension correctly tries to go to https://hachyderm.io/@[email protected]. However, that URL then simply redirects back to https://fosstodon.org/@libreoffice again, so you end up back where you started.

Hello! I was also dealing with this for https://github.com/tvler/streetpass/issues/4 and found this issue while searching around. I reached out in the mastodon discord and apparently this is fixed in 4.2.1! https://github.com/mastodon/mastodon/pull/27272

tvler avatar Oct 06 '23 19:10 tvler