New Entry/Comment Redirect
If you open a second elog tab and then go back to the first and make a comment on an entry. Once submitted, you are redirected to the new tab path rather than the current tab path.
#3 Updated by Kyle Hazelwood about 3 years ago
The elog doesn't use the referer header to redirect after form submission. Instead, the form is submitted via ajax and after success it makes another ajax request to the elog server to query the proper url to redirect to. The url is generated using two things: first, from the saved session (i.e. what the user has refined when viewing the elog) and second, what needs to be appended or removed from the session to ensure the entry/comment just edited or submitted will show when the page is redirected (i.e. append the comment or entry anchor tag or make an exception to the users current selection to show the entry or comment.) Since there is only one session per browser, when the new tab is opened its refinement overwrites the session and the form submission on the other tab uses the new session data. Also, since there is only one session, using the referer header to redirect would have the same effect of overwriting the session on the other tab because every time the page is loaded the session is updated.
Sorry for the long winded explanation.