bramus / mastodon-redirector

View Mastodon profiles on your Mastodon instance

Home Page:https://chrome.google.com/webstore/detail/mastodon-view-profile/limifnkopacddgpihodacjeckfkpbfoe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extention press not working - no redirect

bashfulrobot opened this issue · 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.

no-redirect.mp4

Ideas?

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/@libreoffice@fosstodon.org. However, that URL then simply redirects back to https://fosstodon.org/@libreoffice again, so you end up back where you started.

Just encountered this myself: it happens when you’re not logged in to the other server. For example, visiting https://mastodon.social/@bramus@front-end.social in an incognito window will automatically redirect you to https://front-end.social/@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.

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/@foo@example.net 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).

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)

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/@libreoffice@fosstodon.org. 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 tvler/streetpass#4 and found this issue while searching around. I reached out in the mastodon discord and apparently this is fixed in 4.2.1! mastodon/mastodon#27272