Skip to content

Commit

Permalink
changing /edu paths to /edubeta (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle authored Sep 23, 2024
1 parent e4a1477 commit 5647a4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<div class="ml-2 pl-3 xl:ml-3 xl:pl-5 border-l border-white border-opacity-30 z-20">
<BaseLink
class="text-white font-bold text-2xl xl:text-3xl"
to="/edu/"
to="/edubeta/"
link-class="py-2"
variant="none"
>
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/src/templates/edu/PageEduHome/PageEduHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const image = computed(() => {
})
const submitSearch = () => {
router.push({ path: '/edu/resources/', query: { query: searchQuery.value } })
router.push({ path: '/edubeta/resources/', query: { query: searchQuery.value } })
}
</script>
<template>
Expand Down Expand Up @@ -101,7 +101,7 @@ const submitSearch = () => {
>
<BaseLink
variant="none"
:to="`/edu/resources?query=${topic.page?.title}`"
:to="`/edubeta/resources?query=${topic.page?.title}`"
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"
>
{{ topic.page?.title }}
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/src/utils/mixins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ export const mixinIsActivePath = (itemPath: string): Boolean => {
if (currentPath && path && ancestorPath) {
if (currentPath === path) {
return true
} else if (currentPath.startsWith('/edu/events')) {
} else if (currentPath.startsWith('/edubeta/events')) {
// special treatment since EDU combines News & Events in the main nav
return path.startsWith('/edu/news')
return path.startsWith('/edubeta/news')
} else {
return currentPath.startsWith(ancestorPath)
}
Expand Down

0 comments on commit 5647a4e

Please sign in to comment.