Fix query params in breadcrumb for legacy agenda

pull/4344/head
Angel Fernando Quiroz Campos 3 years ago
parent b5a1f72cf9
commit f8b51903be
  1. 5
      assets/vue/components/Breadcrumb.vue
  2. 2
      public/main/calendar/agenda.php

@ -99,6 +99,7 @@ const foo = computed(() => {
let queryParams = '';
Object.keys(route.query)
.filter(key => !!key)
.forEach(key => {
if ('' !== queryParams) {
queryParams += "&";
@ -124,11 +125,11 @@ const foo = computed(() => {
const lastItem = matched[matched.length - 1];
if (resourceNode.value) {
resourceNode.value.path.split('/').forEach((pathItem, i, parthItems) => {
resourceNode.value.path.split('/').forEach((pathItem, i, pathItems) => {
let itemParts = pathItem.split('-');
if (0 === i) {
let firstParts = parthItems[i + 1].split('-');
let firstParts = pathItems[i + 1].split('-');
items.push({
label: matched[0].name,

@ -17,7 +17,7 @@ if (!empty($course_info)) {
$action = isset($_GET['action']) ? Security::remove_XSS($_GET['action']) : null;
$this_section = SECTION_COURSES;
$url = null;
$url = '/resources/ccalendarevent';
if (empty($action)) {
if (!empty($course_info)) {
$url = api_get_path(WEB_CODE_PATH).'calendar/agenda_js.php?type=course&'.api_get_cidreq();

Loading…
Cancel
Save