Raneto
Raneto copied to clipboard
Clicking edit action on home results in a 404.
I am doing this with Raneto at a sub URL prefix (base_url set), so not sure if related to that or applies all the time, still need to check without. But, when at root of content, ie., on index, but without index appearing in the URL and instead just ending in /, clicking on edit action doesn't work and you get 404.
The code when clicking on edit is:
// Edit Page
$(".goto-edit").click(function () {
window.location.href = window.location.href + "/edit";
});
If the URL though is /base_url/, that results in /base_url/edit, when really want it to be /base_url/index/edit.
Code may need to check value of window.location.href and if it ends with a /, add index/edit instead of just /edit.