nextcloud-libraries/nextcloud-vue

NcActionLink inside of NcActions is missing the target and rel attributes

Closed this issue · 3 comments

works as expected:

<NcActionLink href="https://nextcloud.com" target="_blank">
	<template #icon>
		<OpenInNew :size="20" />
	</template>
</NcActionLink>

--> <a data-v-1ba1edf1="" href="https://nextcloud.com" aria-label="" target="_blank" rel="nofollow noreferrer noopener" class="action-link focusable">...</a>

has no target or rel attribute:

<NcActions>
	<NcActionLink href="https://nextcloud.com" target="_blank">
		<template #icon>
			<OpenInNew :size="20" />
		</template>
	</NcActionLink>
</NcActions>

--> <a data-v-2e49be1e="" data-v-20a3e950="" data-v-8a67d7ee="" role="button" href="https://nextcloud.com" class="button-vue button-vue--icon-only button-vue--vue-tertiary action-item action-item--single">...</a>

The rel attribute seems to be correctly present (now). target is not correctly set in master, but it is fixed in the vue 3 version in next branch.

target works as expected in the current @nextcloud/vue@8.
rel is not supposed to be changeable.

If this is still an issue for you, please, provide an example with a reproduction.

Closed for now.

I wasn't interested in changing rel, I just noticed that it was missing and assumed that this was by mistake. Closing this since both target and rel are now present.