Skip to content

Commit c16a9d6

Browse files
authored
fix: better area links from the menus (ietf-tools#5620)
* fix: better area links from the menus * chore: remove debugging line
1 parent 6fd9a39 commit c16a9d6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ietf/doc/templatetags/wg_menu.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright The IETF Trust 2009-2022, All Rights Reserved
1+
# Copyright The IETF Trust 2009-2023, All Rights Reserved
22

33
# Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
44
# All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>
@@ -32,6 +32,8 @@
3232
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3333
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3434

35+
import debug # pyflakes: ignore
36+
3537
from django import template
3638
from django.template.loader import render_to_string
3739
from django.db import models
@@ -68,7 +70,7 @@ def wg_menu(flavor):
6870
p.short_name = p.short_name[: -len(" Area")]
6971

7072
if p.type_id == "area":
71-
p.menu_url = "/wg/#" + p.acronym
73+
p.menu_url = "/wg/#" + p.acronym.upper()
7274
elif p.acronym == "irtf":
7375
p.menu_url = "/rg/"
7476
elif p.acronym == "iab":

0 commit comments

Comments
 (0)