diff --git a/test/documentation/version.js b/test/documentation/version.js index d1fb37dc..0ab52f2e 100644 --- a/test/documentation/version.js +++ b/test/documentation/version.js @@ -1,7 +1,7 @@ -// SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin -// SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik -// SPDX-License-Identifier: BSD-3-Clause - +/* SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin + SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik + SPDX-License-Identifier: BSD-3-Clause +*/ /* Jongkyu Kim (j.kim@fu-berlin.de), 2016.01.12 Adaptations by Enrico Seiler (enrico.seiler@fu-berlin.de), 2020 */ @@ -47,7 +47,7 @@ function addVersionSelection(arr) version_select.addEventListener("change", function(){changeVersion(this.id);}, false); // current selection is.. - cur_sel = window.location.pathname.split("/")[2]; + cur_sel = window.location.pathname.split("/").at(-2); for(i=0; i < arr.length; ++i) { diff --git a/test/documentation/version.php b/test/documentation/version.php index a5a2f489..ca6dda16 100644 --- a/test/documentation/version.php +++ b/test/documentation/version.php @@ -1,9 +1,9 @@