After saving a node the json returned by "/views/ajax?title=kold&type=All&name=&status=All&vid=All" ( see output below ) is shown instead of the content page. This happens only if the node to edit is opened after a search in the content view.
[
{
"command": "settings",
"settings": {
"basePath": "/",
"pathPrefix": "",
"ajaxPageState": {
"theme": "kalklandet",
"theme_token": "_HOyjn1CWY--KtXNIrfKmX--IqiQOwEHX-TfwwAMdCw",
"css": [ ]
},
"colorbox": {
"opacity": "0.85",
"current": "{current} of {total}",
"previous": "« Prev",
"next": "Next »",
"close": "Close",
"maxWidth": "100%",
"maxHeight": "100%",
"fixed": true,
"__drupal_alter_by_ref": [
"default"
]
},
"overlay": {
"paths": {
"admin": "media/*/edit\nmedia/*/multiedit\nmedia/*/delete\nnode/*/edit\nnode/*/delete\nnode/*/revisions\nnode/*/revisions/*/revert\nnode/*/revisions/*/delete\nnode/add\nnode/add/*\noverlay/dismiss-message\nuser/*/shortcuts\nadmin\nadmin/*\nbatch\ntaxonomy/term/*/edit\nuser/*/cancel\nuser/*/edit\nuser/*/edit/*",
"non_admin": "admin/structure/block/demo/*\nadmin/reports/status/php"
},
"ajaxCallback": "overlay-ajax"
}
},
"merge": true
}
]
Comments
Comment #1
damiankloip commentedI can't replicate this beahviour, everything is working fine for me. Not sure it would be an admin_views issue anyway. What versions of views, admin_views etc... are you using?
Comment #2
sunThis is a known issue with Views, potentially only earlier versions.
Definitely not caused by admin_views.
Comment #3
gary.evans commentedDid you find a solution to this? I'm having the same issue, only when admin_views is enabled. I'm using views 7.3.5
Thanks
Comment #4
nally commentedCould this issue be a duplicate of this one?
#1825082: modal overlays return JSON instead go back to ui after hitting apply when using jquery 1.8
Comment #5
GregSmith104 commentedI am also experiencing the same problem and thanks to this issue I've been able to replicate the problem every time. It only happens when I edit a node after searching for it on the Find content page with Admin Views enabled.
Additional details are here: http://drupal.stackexchange.com/questions/93881/why-am-i-getting-a-json-...
The problem is caused by the destination url arguments. If they are removed, the problem goes away.
Comment #6
akalata commentedre #4: I'm getting the returned JSON even without Overlay enabled.
Comment #7
badrange commentedTurning off AJAX for the Find Content view (Administration:Nodes) seems to fix this problem.
Comment #8
badrange commentedSorry for spamming you, I now see that this is indeed caused by a Views bug - that has a patch for it:
https://drupal.org/node/1650420
Would it make sense to add a note about this issue and it's solution on the project page (or even a workaround)?
Since you already state: "Filter all administrative views via AJAX." on the front page.
Comment #9
r4wils commentedI have updated to the current dev version and have rolled back to version 7.x.3-dev and still have this issues. Any advice?
Comment #10
r4wils commentedI discovered my issue, I was using jquery 1.8 and needed to downgrade to 1.7
Comment #11
pachabhaiya commentedi had the same problem. downgrading jquery version from 1.8 to 1.7 fixed it. thanks r4wil.
Comment #12
damiankloip commentedThis is still not an amin views problem.
Comment #13
ultimikeI'm thinking that this issue is related to https://www.drupal.org/node/1036962
-mike
Comment #14
cozzamara commentedHi, I have the same issue with jquery 1.10 and I use JQuery update module. If I set jquery 1.7 the issue does not happen more
Comment #15
damienmckennaPlease make sure you use the latest release of Views, it should behave better with newer releases of jQuery.
Comment #16
cozzamara commentedI have Version: 7.x-3.23 installed and jQuery Update Version: 7.x-2.7.
Comment #17
cozzamara commentedSorry but I made a mistake...My Issue happens in Views module when edit certains view....not Administration Views..
Please sorry