NXP-11045: check if the main tab action requires a document to build the
correct URL: with a document or with a repositoryName only.