Now I am redirected to the main page in my Rails application using
redirect_to root_path
I want to do the same in jQuery.
i.e. window.location.replace("???");
window.location.replace("???");
How to do it?
window.location = '/'
The disadvantage of using window.location.replace('/') is that the user cannot click "Back" and return to the previous page.
window.location.replace('/')
Source: https://habr.com/ru/post/1303662/More articles:Highlighting data with different colors in Excel using C # in Windows applications - c #awk or perl one-liner to print a line if the second field is longer than 7 characters - awkC #: Converting Get / Set from vb.net to C # - c #NSInvalidArgumentException: Illegal attempt to communicate between objects in different contexts - objective-cHow to create a common registry key for WoW64 and x64 processes - c #Transferring objects between contexts of a managed object - objective-cHow to cache objects that store them for multiple requests? - cachinghttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1303665/how-to-password-protect-files-images-video-zip-dynamically-from-public-and-allow-access-to-members-only&usg=ALkJrhjxx3bEO7tEZjt6KH88lkvH50uxvwAnt in Eclipse: Quietly Completed - eclipseHow to get html page contents in python - pythonAll Articles