@yariplus lol yeah would be more simpler, I know about that method, but I went with the longer approach because my first few tries I had issues so I made assumptions that it was data type or something. Thanks though, that method definitely makes the code look cleaner.
How to redirect to edit post?
Suppose that we are in another part of forum and I have this button. When I click on this button I would that it redirects me to page where I can modify post (it do this in my code):
But I want that when the button redirects me to "edit page" I see immediately the "edit form" with the value (something like this):
When I click on the button I use, to redirect at "edit page":
window.location.href = config.relative_path + "/topic/" + topic_id + "/" + topic.title;
Anyone can suggest how I can do this?
On the page ACP > Plugin > Composer (default) turn on the option "Use a separate route for the composer"