Try removing the absolute path in the action and just post to ?/create. The component exists in the context of whatever page is using it, so when you submit the modal form it's as if you're submitting a form straight from that page.