diff --git a/src/components/Atoms/SafeHtml.vue b/src/components/Atoms/SafeHtml.vue index 5913218..f236126 100644 --- a/src/components/Atoms/SafeHtml.vue +++ b/src/components/Atoms/SafeHtml.vue @@ -10,7 +10,7 @@ export default { name: 'SafeHtml', directives: { sanitize: { - inserted(el, binding) { + mounted(el, binding) { el.innerHTML = dompurify.sanitize( linkifyHtml(binding.value, { nl2br: true, diff --git a/src/router.js b/src/router.js index e955944..b41ebd9 100644 --- a/src/router.js +++ b/src/router.js @@ -1,10 +1,10 @@ -import { createRouter, createWebHistory } from 'vue-router' +import { createRouter, createWebHashHistory } from 'vue-router' import Discover from './views/Discover.vue' import Feed from './views/Feed.vue' import { generateUrl } from '@nextcloud/router' const router = createRouter({ - history: createWebHistory(generateUrl('apps/repod')), + history: createWebHashHistory(generateUrl('apps/repod')), routes: [ { path: '/',