release-system
release-system copied to clipboard
Create the links through the site router
ARS latest should create the links through the site router. If it doesn't and an article is created through webservices it crashes, that the build function is not found in the APIApplication class.
While the observation about the behaviour is valid, the solution is not.
The correct solution would be replacing Route::_(...) with Route::link('site', ...).
The reason is that going through Route::link uses htmlspecialchars unless $xhtml is false. This means that the first four replacements you made (which had an implied $xhtml = true due to the default _() static method arguments) are now broken, only the fifth replacement being correct (it explicitly sets that parameter to false).