This is a followup for T32074: Redirecting css/js wiki pages shouldn't cause syntax errors when loaded as a module..
I think it would be better if the result of using "action=raw&ctype=text/javascript" or "action=raw&ctype=text/css" were changed to output nothing (or just an informative comment) if the target page is a redirect. This way the users who import a page which was moved will not have broken scripts and stylesheets.
Would that be feasible by some change similar to https://static-codereview.wikimedia.org/MediaWiki/94155.html ?
Version: unspecified
Severity: normal
URL: https://en.wikipedia.org/w/index.php?title=MediaWiki:Sysop.css&diff=prev&oldid=456378679
See Also:
T36930: Suppress redirects when moving *.js and *.css pages during a user rename