@@ -58,7 +58,7 @@ const DetailsTobiraTab = ({ kind, id }: DetailsTobiraTabProps) => {
5858
5959 const i18nKey = kind === "series" ? "SERIES" : "EVENTS" ;
6060 const prefix = kind === "series" ? "s" : "v" ;
61- const directTobiraLink = tobiraData . baseURL + `/!${ prefix } /: ` + id ;
61+ const directTobiraLink = tobiraData . baseURL + `/!${ prefix } /` + ( tobiraData . id . length > 2 ? tobiraData . id . substring ( 2 ) : `: ${ id } ` ) ;
6262
6363 const getBreadcrumbs = ( currentPage : TobiraPage ) => {
6464 const homepage = {
@@ -204,6 +204,7 @@ type TobiraTableProps = {
204204const TobiraTable = ( { tobiraData, i18nKey, openSubTab, handleDelete } : TobiraTableProps ) => {
205205 const { t } = useTranslation ( ) ;
206206 const deleteConfirmationModalRef = useRef < ModalHandle > ( null ) ;
207+ const prefix = i18nKey === "SERIES" ? 's' : 'v' ;
207208
208209 return < div className = "obj" >
209210 < header > { t ( `EVENTS.${ i18nKey } .DETAILS.TOBIRA.PAGES` ) } </ header >
@@ -222,7 +223,8 @@ const TobiraTable = ({ tobiraData, i18nKey, openSubTab, handleDelete }: TobiraTa
222223 </ tr > }
223224 { tobiraData . hostPages . map ( hostPage => < tr key = { hostPage . path } >
224225 < td >
225- < a href = { tobiraData . baseURL + hostPage . path } >
226+ < a href = { tobiraData . baseURL + hostPage . path +
227+ ( tobiraData . id . length > 2 ? `/${ prefix } /${ tobiraData . id . substring ( 2 ) } ` : '' ) } >
226228 { hostPage . path !== '/' && < >
227229 < span className = "tobira-page-separator" > /</ span >
228230 { hostPage . ancestors . map ( ( ancestor , key ) => (
0 commit comments