From d329a02fe8801de57f60dfac25c4bc5b07aeacda Mon Sep 17 00:00:00 2001 From: simonredfern Date: Mon, 8 Dec 2025 16:32:20 +0100 Subject: [PATCH] version is OBPv6.0.0 by default --- src/components/SearchNav.vue | 4 ++-- src/obp/index.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/SearchNav.vue b/src/components/SearchNav.vue index d3d6f0f..d4eec98 100644 --- a/src/components/SearchNav.vue +++ b/src/components/SearchNav.vue @@ -93,7 +93,7 @@ onBeforeMount(async () => { activeKeys.value = Object.keys(groups.value) sortedKeys.value = activeKeys.value.sort() await initializeAPICollections() - setTabActive(route.params.id) + setTabActive(route.query.operationid) let element = document.getElementById("selected-api-version") if (element !== null) { const totalRows = Object.values(groups.value).reduce((acc, currentValue) => acc + currentValue.length, 0) @@ -136,7 +136,7 @@ const countApis = () => { const routeToFirstAPI = () => { let element const elements = document.getElementsByClassName('api-router-link') - const id = route.params.id + const id = route.query.operationid for (const el of elements) { if (el.id === id) { element = el diff --git a/src/obp/index.ts b/src/obp/index.ts index dbda107..5bbafd7 100644 --- a/src/obp/index.ts +++ b/src/obp/index.ts @@ -30,8 +30,9 @@ import { DEFAULT_OBP_API_VERSION } from '../../shared-constants' // Always use v5.1.0 for application infrastructure - stable and debuggable export const OBP_API_VERSION = DEFAULT_OBP_API_VERSION +// Default to showing v6.0.0 documentation in the UI (can be overridden by env var) export const OBP_API_DEFAULT_RESOURCE_DOC_VERSION = - import.meta.env.VITE_OBP_API_DEFAULT_RESOURCE_DOC_VERSION ?? `OBP${DEFAULT_OBP_API_VERSION}` + import.meta.env.VITE_OBP_API_DEFAULT_RESOURCE_DOC_VERSION ?? 'OBPv6.0.0' const default_collection_name = 'Favourites' export async function serverStatus(): Promise {