https://bugzilla.wikimedia.org/show_bug.cgi?id=31827

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|javascript                  |
           Priority|Unprioritized               |Normal
             Status|RESOLVED                    |REOPENED
                 CC|                            |[email protected]
         Depends on|33973                       |
         Resolution|WONTFIX                     |
            Summary|Moving CSS and JS pages     |Respond with valid JS/CSS
                   |shouldn't cause errors for  |on redirects when using
                   |users importing the old     |action=raw&ctype=text/css
                   |title                       |or
                   |                            |action=raw&ctype=text/javas
                   |                            |cript

--- Comment #7 from Krinkle <[email protected]> 2012-07-22 03:03:02 UTC ---
Example urls:
*
https://en.wikipedia.org/w/index.php?title=MediaWiki:Doesnteixst.css&action=raw&ctype=text/css
*
https://en.wikipedia.org/w/index.php?title=User:Krinkle/Doesnteixst.js&action=raw&ctype=text/javascript

(In reply to comment #5)
> (In reply to comment #1)
> > I'm pretty sure that would still by definition break their scripts/styles by
> > removing them...?
> 
> Why not actually making redirects work in css and js pages? Is there anything
> that makes this fundamentally more complicated than other cases? By now we're
> using redirects for pages, images, templates, and it all works seamlessly.

Because contrary to all of the above, CSS and javascript are not Wiki-specific
objects. They are native scripts interpreted by the browser - while at the same
time being an ordinary wikipage that should be editable, watchable, and...
redirectable (when viewing normally).

I've wontfixed bug 33973 (see reason there), and re-opening this one.

We should make action=raw respond with valid CSS or JavaScript when requesting
ctype=text/css or ctype=text/javascript on a redirect. Just like we used to do
for non-existent ones (by reponding with HTTP 200 OK; Content: /* Empty */; -
instead of HTTP 404 Not Found).

For redirects we can do something like HTTP 200 OK: Content: /* Redirect */

It is important that this only happens for those content types. In other cases
it should respond with the original wikitext as expected, as other wise it
could break bots and scripts.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to