Skip to content
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dgw
Comment options

dgw Nov 30, 2021
Maintainer

@matthewpkemp
Comment options

Answer selected by matthewpkemp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants