Hello,
When a user deletes or edits a status, the edit or delete operation is performed BUT a page not found will follow.
Watch dog shows the referrer as
http://mysite.com/base/ar/statuses/3/delete?destination=http%3A//mysite....
http://mysite.com/base/ar/statuses/5/edit?destination=http%3A//mysite.co...
The resulting url is: http://mysite.com/base/ar/%252Fbase/ar
Site home page is http://mysite.com/base/ar
A user may add a status, or respond to a status without errors.
Regards.
Comments
Comment #1
icecreamyou commentedHmm. It doesn't make any sense that you would get redirected there because the "destination" parameter is correct. That
%252Fin the URL is a double-encoded slash (/). I can't reproduce this myself, although my sites are all in the webroot in a single language.What is the actual URL when you click on an edit/delete link (as opposed to what shows up in Watchdog)?
Comment #2
tcibah commentedEdit & Delete URL when clicking the links are:
http://mysite.com/base/statuses/2/edit?destination=http%3A//mysite.com/b...
http://mysite.com/base/statuses/2/delete?destination=http%3A//mysite.com...
Will also end you site name & credentials by email.
Thanks
Comment #3
icecreamyou commentedThat is really weird. It's a server configuration problem because the URL is correctly formed and the rest is basically browser behavior. I've tested this in every major browser (and some minor ones) on every major operating system and they all work. And it's not limited to FBSS because for example if you go to the URL
http://yoursite.com/base/user/4/edit?destination=http://yoursite.com/base/ogand submit the form it will redirect you to the wrong place. But relative URLs work likehttp://yoursite.com/base/user/4/edit?destination=og.Anyway, I've committed a fix to dev. Hopefully the fix won't break other sites, but it works for me and it should work for you.
Comment #4
tcibah commentedHello,
Uploaded & activated today's dev release, cretaed a status, but still getting "Page not found" after editing that status.
Redirected to: http://mysite.com/base//base/users/username
URL should be
http://mysite.com/base/users/username
We will be pleased to have your comments on the potential server configuration problem mentioned above. Will work on that & hope it will fix the issue.
Thanks for your support.
Comment #5
tcibah commentedUPDATE: Based on your hint & as our Drupal install is in a subdirectory, we have uncommented the following directive in the .htaccess file:
RewriteBase /base
So far, we are able to edit & delete statuses without errors. We will do more tests & report the finding in case of errors.
Have a great weekend..
Comment #6
icecreamyou commentedI had to refresh my browser cache before it would work for me. That was probably your issue after upgrading to dev. But good to know about the RewriteBase rule.
Comment #7
tcibah commentedTrue!
We re-commented that RewriteBase rule, cleared local & server cache; we were able to edit/delete a status without error.
Comment #9
donquixote commentedStill seeing this bug.
"Status has been successfully edited."
"Page not found."
on .../en/en/user/1/status
(duplicate language code)
referrer: .../en/statuses/2/edit?destination=en/user/1/status
The destination should be "user/1/status". Language code is prepended automatically.
Comment #10
icecreamyou commented@donquixote your issue is addressed at #879100: Bad redirects on edit links in multilingual websites