Skip to content

fix: use absolute nav links in TitleBar#451

Merged
tkuhn merged 1 commit intomasterfrom
fix-titlebar-nav-from-connector
Apr 22, 2026
Merged

fix: use absolute nav links in TitleBar#451
tkuhn merged 1 commit intomasterfrom
fix-titlebar-nav-from-connector

Conversation

@tkuhn
Copy link
Copy Markdown
Contributor

@tkuhn tkuhn commented Apr 22, 2026

Summary

Fixes #450 — from `/connector/select?journal=...`, clicking the top-left "Publish" navigated to `/connector/publish` (`GenPublishPage`) with no `template` param and errored out.

Root cause: the nav menu items used `./publish`, `./userlist`, `./spaces`, `./queries` as hrefs. Browser URL resolution made them relative to the current page, so from any `/connector/*` URL they landed inside the connector tree instead of at the app root.

  • Replaced the plain `WebMarkupContainer` slots in `TitleBar` with `BookmarkablePageLink` so Wicket generates absolute, page-class-aware URLs regardless of the current page.
  • Changed the static `Home` link href from `.` to `/` for the same reason (it's not Wicket-wired).

Test plan

  • From `/connector/select?journal=ios/ds`, click each top-left menu item (Users, Spaces, Publish, Query, Home) and confirm each lands on the corresponding app-root page.
  • From `/publish`, `/spaces`, `/queries`, `/userlist`, the same items keep working as before.
  • In read-only mode, the Publish menu item stays hidden.
  • Highlighted tab (via `TitleBar` `highlight` argument) still gets the `selected` CSS class.

🤖 Generated with Claude Code

The top-left menu items used './publish', './userlist', './spaces',
'./queries' as hrefs, which the browser resolved relative to the
current URL. From a connector page like /connector/select, clicking
"Publish" therefore hit /connector/publish (GenPublishPage) without
the required template param and errored out (#450).

- Replace the WebMarkupContainer nav slots with BookmarkablePageLink
  so Wicket generates absolute, page-class-aware URLs.
- Change the static Home link href from "." to "/" so it also goes
  to the app root regardless of current URL.

Fixes #450.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@tkuhn tkuhn merged commit 135d27a into master Apr 22, 2026
8 checks passed
@tkuhn tkuhn deleted the fix-titlebar-nav-from-connector branch April 22, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Top-left menu buttons lead to non-existing page when selected from within connector/

1 participant