Is there any known way to retain the prepopulate query string when the user must login before submitting content?
I have to imagine this is a pretty common use case -- requiring users to be registered and logged in before they can submit content, using a bookmarklet that generates a Prepopulate URL, sent to node add form, not logged in, after logging in the Prepopulate query disappears.
I realize this issue was covered in a previous issue in the queue (#136948: Preserve prepopulation data during login procedure), but that was for the D5 branch, and so pretty well out-dated, and never resolved.
Hoping that someone has come up with a decent solution for this in D7.
Comments
Comment #1
willkaxu commentedsubscribe
Comment #2
surtr commentedHas anyone found a workaround for this? I've been trying to get this to work by modifying the module locally but no luck (I am extremely novice with PHP and drupal).
Comment #3
jbrauer commentedIn core Drupal a user would get a 403 Access Denied error page if they reached a page that they weren't authorized for. If they are being redirected to login this would be the work of a custom module or contributed module (there are several contributed modules for this). That module would need to implement the code to ensure it did not replace the query string with the destination but instead just add to the query string.
Comment #4
surtr commentedSo in my case, I'm not using a 3rd party module to redirect from a 403, rather setting the standard 403 page to /user/login. Perhaps I can modify the user/login template in such a way that it will pass the full initial requested URL with query params. I'll look into it and report back.
Comment #5
surtr commentedOK, I switched up my configuration -- now using the Redirect 403 to User Login module instead of the standard 403 error page redirect and now it works perfectly.