ShredCode/YOURLS-filter-code

Option to change default code

jsbrain opened this issue · 2 comments

Hi,

which variable do I have to use to change the default status code for all links, if no explicit status code is selected?

Thank you in advance

Hello! I am not sure if you need a quick fix or if suggesting the ability to set
a default.

$status_code = $code;

If you need a quick fix: I would modify the line above to not assign the $code variable, but rather the one you wish to use as a default: ie. $status_code = '302';

Hopefully that helps!

Great, thank you very much!