async getByURL(url) {
        const path = this.#urlUtils.absoluteToRelative(url.href, {withoutSubdirectory: true});
        const resource = this.#urlService.getResource(path);
        if (resource?.config?.type === 'posts') {
            return {
                type: 'post',
                id: ObjectID.createFromHexString(resource.data.id)
            };
        }
        if (resource?.config?.type === 'pages') {
            return {
                type: 'page',
                id: ObjectID.createFromHexString(resource.data.id)
            };
        }
        return {
            type: null,
            id: null
        };
    }
@param {URL} url
@returns {Promise<import('./MentionsAPI').ResourceResult>}