On 16.04.2009, at 18:47, [email protected] wrote:
> How do we get the button "Bestelle Buch bei PediaPress" to work on
> this page:
> http://ck-wissen.de/ckwiki/index.php?title=Spezial:Sammlung
>
> The function now is a kick back to the CK-Wissen wiki main page, but
> the URL shown is
> http://ck-wissen.de/ckwiki/index.php?partner=pediapress

Are you using CGI? Would it be possible to change that? This would  
most probably fix it immediately for you.

The problem is, that all URLs of in your wiki already contain at least  
one query parameters ?title=TITLE. Thus, the form which is submitted,  
when clicking the "Bestelle Buch bei PediaPress" has the following  
action URL, constructed via MediaWiki core functions:

   http://ck-wissen.de/ckwiki/index.php?title=Spezial:Sammlung/post_zip/

When the form is submitted, the browser appends the string "? 
partner=pediapress" and produces an invalid URL with two ?'s which is  
causing the error (when requesting that URL with a browser or with  
curl/wget, an error page "Unbekannte Unterseite" is returned).

The following URL would be correct (and actually works when entered  
manually in the browser:

   
http://ck-wissen.de/ckwiki/index.php?title=Spezial:Sammlung/post_zip/&partner=pediapress

You can even use this shorter version

   http://ck-wissen.de/ckwiki/index.php?title=Spezial:Sammlung/post_zip/

because partner=pediapress is the default value for now.

I have to look into the code to see if/how I can fix this. I've opened  
a ticket:

   http://code.pediapress.com/wiki/ticket/580

-- Johannes


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/mwlib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to