Hi,
I wrote my first simple (just to say, as nothing is simple with Vue) Navigation bar.
I am stuck since hours for a simple href that is converted to β#β once I build it:
<template>
<NcAppNavigation>
<NcAppNavigationCaption heading-id="gifgen-heading"
is-heading
:title="t('highlightgenerator', 'Simple Gif Generations')" />
<ul>
<NcAppNavigationItem
:title="t('highlightgenerator', 'Images 2 PNG')"
name="testname"
href="https://www.nextcloud.com">
<template #icon>
<NcAppNavigationIconBullet color="0082c9" />
</template>
</NcAppNavigationItem>
<NcAppNavigationItem
:title="t('highlightgenerator', 'Video 2 PNG')"
name="testname2"
href="page#img2gif">
<template #icon>
<NcAppNavigationIconBullet color="0082c9" />
</template>
</NcAppNavigationItem>
</ul>
<NcAppNavigationCaption heading-id="hlgen-heading"
is-heading
:title="t('highlightgenerator', 'Highlight Generator')" />
</NcAppNavigation>
</template>
<script>
import NcAppNavigation from '@nextcloud/vue/dist/Components/NcAppNavigation.js'
import NcAppNavigationItem from '@nextcloud/vue/dist/Components/NcAppNavigationItem.js'
import NcAppNavigationCaption from '@nextcloud/vue/dist/Components/NcAppNavigationCaption.js'
import NcAppNavigationIconBullet from '@nextcloud/vue/dist/Components/NcAppNavigationIconBullet.js'
export default {
name: 'MyNavigation',
components: {
NcAppNavigation,
NcAppNavigationItem,
NcAppNavigationCaption,
NcAppNavigationIconBullet,
},
}
</script>
I would like to open the link and create an application with 2-3 tools. Could it be, that href isnβt parsed anymore? There is no effect on my page, I see always β#β:
<li id="app-navigation-item-djvfr" class="app-navigation-entry-wrapper" name="testname" href="https://www.nextcloud.com" data-v-3ab7cf52="">
<div class="app-navigation-entry">
<a href="#" aria-expanded="false" class="app-navigation-entry-link"><div class="app-navigation-entry-icon"><div data-v-2f791f07="" class="app-navigation-entry__icon-bullet"><div data-v-2f791f07="" style="background-color: rgb(0, 130, 201);"></div></div></div> <span title="Images 2 PNG" class="app-navigation-entry__title">
Images 2 PNG
</span>
<!---->
</a> <!----> <!----> <!---->
</div> <!---->
</li>