Skip to content

TP: home page navigation links ignore the /ThirdParty context path (404); dead energyos.github.io doc links #235

Closed

Description

@dfcoffin

Problem

The Third Party runs under the context path /ThirdParty, but its Thymeleaf templates use hard-coded root-relative links. Every internal navigation link on the home page returns 404.

Link on /ThirdParty/ and /ThirdParty/home Requested Result Correct path
Brand and "Home" href="/" http://localhost:8082/ 404 /ThirdParty/ → 200
"About" href="/about" /about 404 /ThirdParty/about → 302 to login
"Login" href="/login" /login 404 /ThirdParty/login → 200

The same href="/" pattern appears in error.html, login.html, TermsOfService.html and UsagePolicy.html.

Two external links in home.html (lines ~176 and ~195) are also dead:

  • http://energyos.github.io/OpenESPI-GreenButton-API-Documentation/ → 404
  • http://energyos.github.io/OpenESPI-GreenButton-API-Documentation/API/ → 404

The Bootstrap CDN, greenbuttondata.org and GitHub links work.

Fix

  • Use Thymeleaf context-relative URLs: th:href="@{/}", th:href="@{/about}", th:href="@{/login}", and so on, in every template.
  • Replace or remove the two energyos.github.io links, for example pointing them at the current Green Button documentation.
  • Optional: a MockMvc test that renders home and checks that every internal href starts with the context path.

Found by checking the Third Party home page links with the local profile.

Activity

  1. added a commit that references this issue on Nov 14, 2026
  2. dfcoffin commented on Nov 14, 2026

    @dfcoffin
    ContributorAuthor

    Fixed on main by:

    main has no root-relative internal links left in the Third Party templates. Thanks also to @Muhamedkaif, whose #238 diagnosed this independently.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions