Why are my profile pages not generating which I click on 'submit'?
Try setting the action and redirect as hidden inputs, see below:

&lt;form method="post"&gt;
    &lt;input type="hidden" name="action" value="users/saveUser"&gt;
    &lt;input type="hidden" name="redirect" value="/profile/{{ currentUser.username }}"&gt;