What am I doing wrong? #3129
-
|
Hey YOURLS community, it appears I've botched something. My setup: YOURLS v 1.8.2 & Sleeky and it's only for personal use. I thought everything was working well (I saw 301s in browser when testing my instance), but then I started noticing oddness w/ various sites hitting the logs w/ 200 and not 301s. Going into curl I realized that the instance is returning: I cleared browser cache and am seeing 200s again. The plugins I have enabled are:
I suppose this is something silly somewhere, but I can't seem to see what setting I've munged. Sample cases: Was expecting that all of the above would be a 301. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Sounds like something is causing the headers to be sent before I think this is a Sleeky bug. The |
Beta Was this translation helpful? Give feedback.
Sounds like something is causing the headers to be sent before
yourls_redirect()happens. If it's too late to modify the headers, YOURLS sets a JavaScript redirect like the one that can be seen in your snippet above.I think this is a Sleeky bug. The
<style>tag in your snippet appears verbatim here, and outputting that while plugins are loading would cause the observed behavior re: headers being sent already by the time YOURLS attempts a redirect—and also matches your sample cases, where the expected behavior occurs if you log in to YOURLS before trying a short link.