@explorer-1/vue 0.2.66 → 0.2.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@ const image = computed(() => {
|
|
|
33
33
|
})
|
|
34
34
|
|
|
35
35
|
const submitSearch = () => {
|
|
36
|
-
router.push({ path: '/
|
|
36
|
+
router.push({ path: '/edubeta/resources/', query: { query: searchQuery.value } })
|
|
37
37
|
}
|
|
38
38
|
</script>
|
|
39
39
|
<template>
|
|
@@ -101,7 +101,7 @@ const submitSearch = () => {
|
|
|
101
101
|
>
|
|
102
102
|
<BaseLink
|
|
103
103
|
variant="none"
|
|
104
|
-
:to="`/
|
|
104
|
+
:to="`/edubeta/resources?query=${topic.page?.title}`"
|
|
105
105
|
link-class="text-gray-dark whitespace-nowrap text-sm bg-[#99D1DF] font-extrabold rounded-full inline-block px-3 py-1 text-contrast-none hover:bg-action hover:text-white"
|
|
106
106
|
>
|
|
107
107
|
{{ topic.page?.title }}
|
package/src/utils/mixins.ts
CHANGED
|
@@ -157,9 +157,9 @@ export const mixinIsActivePath = (itemPath: string): Boolean => {
|
|
|
157
157
|
if (currentPath && path && ancestorPath) {
|
|
158
158
|
if (currentPath === path) {
|
|
159
159
|
return true
|
|
160
|
-
} else if (currentPath.startsWith('/
|
|
160
|
+
} else if (currentPath.startsWith('/edubeta/events')) {
|
|
161
161
|
// special treatment since EDU combines News & Events in the main nav
|
|
162
|
-
return path.startsWith('/
|
|
162
|
+
return path.startsWith('/edubeta/news')
|
|
163
163
|
} else {
|
|
164
164
|
return currentPath.startsWith(ancestorPath)
|
|
165
165
|
}
|