Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always HTTP Status Code 200 #125

Open
spikehidden opened this issue Jan 13, 2023 · 2 comments
Open

Always HTTP Status Code 200 #125

spikehidden opened this issue Jan 13, 2023 · 2 comments

Comments

@spikehidden
Copy link

When using Sleeky Backend all redirects send a 200 Status Code which causes site Scrapers to fail creating embeds (Discord, Twitter, ect.).

I also tried to check if it maybe an incompatibility with another Plugin so I deleted all of them and only left Sleeky being there. STill the same issue.

Sleeky: v.2.5.0
YOURLS: v.1.8.2

@thompsonpaul
Copy link

The problem is that Sleeky is using the fallback JavaScript method for ALL redirects instead of generating the needed 301-redirect headers. Thus each link registers as a 200 status. Seems to be a conflict with the base YOURLS itself, as I too encounter the issue even with no plugins installed.

@thompsonpaul
Copy link

I've discovered that fixing a user validation issue that was causing login errors also fixed this problem with Sleeky forcing YOURLS to use the fallback JavaScript redirect method that causes all shortlinks to generate a 200 server response instead of the needed 301-redirect.

Once corrected using @likeaross's solution #127 (comment), YOURLS is again generating the proper 301-redirects even with Sleeky enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants