Some time ago, a feature was first proposed in discussion, but despite the strong reasons for its appeal, all opened issues and discussions, related to the feature, apparently have been closed eventually, without any resolution for implementing the requested feature. See below for references.
When a resource is shared publicly, for direct access through a web address, Nextcloud generates an address from the concatenation of the canonical site address, a fixed path internal to the application (usually simply /s
), and a further opaque identifier unique to the shared resource.
Practically, the resulting link is much more weighty and cumbersome than frequently desired. Whereas web sites often are accessed through redirection from shorter addresses, shared links are provided to the user, to be copied in their entirety.
The proposed feature would allow for the configuration of an alternative address prefix, generally involving a separate domain with an abbreviated name, to be used for generation of links that access shared resources.
The site administrator would be responsible for configuring the virtual domains or reverse proxies that allow the application to be accessed through the alternative address, and for designating within the application, Nextcloud, the particular address as special for access to shared resources.
Based on the assumption that the application is accessible through the configured alternative address, shared links would be displayed by the application as generated from the alternative address as prefix, with appended the opaque identifier unique to the shared resource. The fixed internal path would be omitted in the case that an alternative address is configured for such use.
Thus, with such a feature, instead of a shared link being presented as, for example, https://www.myawesomecompany.com/s/EdjzXT7z6TDPtiw
, it could be rather https://awe.io/EdjzXT7z6TDPtiw
.
(As an aside, the unique identifier, apparently generated as a sequence of fourteen mixed-case alphanumeric characters, is much longer than practically necessary. Consider the advantages of an even shorter address, such as https://awe.io/EdjzXT7
.)
-
Change domain in sharing URLs (Discussion)