If 'referer' is enabled but there is not referencing site (i.e. one put in web browser direct address) then after clicking 'cancel' redirects to non existing address, example:
0. enable 'referer' and 'cancel button' for 'page' content type
1. go directly to "http://localhost/xxx/node/add/page" (no via some admin menu or other)
2. hit 'cancel'
3. it redirects you to 'http://localhost/xxx//xxx/' instead of "http://localhost/xxx/node/add"
Comments
Comment #1
jwilson3I agree there should be some chaining going on so that
a) if there is a referrer, go there.
b) if referrer is blank and the content already exists, go to node/$nid
c) if referrer is blank and the content has not been saved yet, go to node/add or (maybe make this worst-case scenario backup destination configurable).
Comment #2
jwilson3Comment #3
pawel_r commented