I try to load the document at the specified url after executing the script as follows: the script executes the url
mySite.loc/admin/menu/menuget/create
here is html
<a href='#' id='#secures' data-formurl='/admin/menu/menuget'>Click</a> here is javascript
$('#secures').click(function(e){ e.preventDefault; var path = $('#secures').data('formurl'); window.location.assign(window.location.hostname+path); } but for some reason I’m getting the following address mySite.loc/admin/menu/menuget/mySite.loc/admin/menu/menuget why not tell me?
...ntDefault();- Igor