I have a user that wants the page to automatically go to the display page of an item that he just created. I want to be able to do this using a Content Editor Webpart using JavaScript that is placed on the list display page.
if(url = newItemURL){
window.location = newItemDisplayURL;
}
The problem I'm having is getting the display url for the newly created item. I could use the ID, but with just JavaScript I'd have to count elements and it gets messy if the user deletes an item. JavaScript is preferred because of organizational limitations, though other languages can be considered.