However, if the target does not exist (or target exists under different db name and Gaia24cgj is just one of the aliases), the error page should not look like this one below.
but in this case should offer simple page saying, the page for this target does not exist. You can: Target Create (link to empty create page, prefill the name), or create by Catalogue Search.
If the target exists under different name, the target create should return the error and the link to that page after submit (there is a different issue about this).
Users can directly access target pages by their names, e.g. https://bh-tom2.astrolabs.pl/targets/Gaia24cgj/
However, if the target does not exist (or target exists under different db name and Gaia24cgj is just one of the aliases), the error page should not look like this one below.
but in this case should offer simple page saying, the page for this target does not exist. You can: Target Create (link to empty create page, prefill the name), or create by Catalogue Search.
If the target exists under different name, the target create should return the error and the link to that page after submit (there is a different issue about this).