Skip to content

Commit fa40d7e

Browse files
committed
Formatting of ids for simple and jump menus.
1 parent f10ea8e commit fa40d7e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Fixed
11+
- Formatting of ids for `simple` and `jump` menus
12+
813
## [2.11.4] - 2025-10-27
914

1015
### Added
1116
- Added configuration option `noRegularServiceDaysText`
12-
- Added Docs for using a Devcontainer
17+
- Added Docs for using a Devcontainer
1318

1419
### Fixed
1520
- Correction for calendar dates inclusion

views/default/timetable_menu.pug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if timetablePage.consolidatedTimetables.length > 1
55
- const showDayList = timetablePageHasDifferentDays(timetablePage);
66
each timetable in timetablePage.consolidatedTimetables
77
li
8-
a(href=`#timetable_id_${timetable.timetable_id}`)
8+
a(href=`#timetable_id_${formatHtmlId(timetable.timetable_id)}`)
99
if showTimetableLabel
1010
span= timetable.timetable_label
1111
if showTimetableLabel && showDayList
@@ -27,7 +27,7 @@ if timetablePage.consolidatedTimetables.length > 1
2727
div
2828
h3= dayList
2929
each timetable in group
30-
a.btn-blue(href=`#timetable_id_${timetable.timetable_id}`)= timetable.timetable_label
30+
a.btn-blue(href=`#timetable_id_${formatHtmlId(timetable.timetable_id)}`)= timetable.timetable_label
3131

3232
if config.menuType === 'radio'
3333
.timetable-radio-menu

0 commit comments

Comments
 (0)