HTTP 404 errors when saving forms on first load when using chrome-dev
Created by: mauritslamers
When having a form it turns out that when trying to save the form gitlab returns an 404, where the log states that there is no route (in this case a Wiki page)
ActionController::RoutingError (No route matches [PUT] "/user/project/wikis/Page/edit"):
I noticed however that reloading the page after it is first displayed makes the form save correctly.
This behaviour first occurred after an upgrade from 6.8 to 6.9 but remains after downgrading back to 6.8. It seems that the problem is that the page incorrectly tries to save to the wrong URL.
At first the page tries to PUT the form to /user/project/wikis/Page/edit
but after refreshing the page the page correctly PUT the form to /user/project/wikis/Page
.