Skip to content

fix(leaderboard): remove trailing slash before path variables in group link#115

Open
armorbreak001 wants to merge 1 commit intodrop-project-edu:masterfrom
armorbreak001:fix/110-leaderboard-group-url-slash
Open

fix(leaderboard): remove trailing slash before path variables in group link#115
armorbreak001 wants to merge 1 commit intodrop-project-edu:masterfrom
armorbreak001:fix/110-leaderboard-group-url-slash

Conversation

@armorbreak001
Copy link
Copy Markdown

Summary

The leaderboard Show Group button generates a URL with a double slash due to an extraneous / before Thymeleaf path variable syntax. This causes a 404 error when teachers click the group button.

Root cause: In leaderboard.html line 54, the expression @{/submissions/(...) places a / immediately before (, which resolves as two separate path segments instead of path variables — producing the malformed href.

Fix: Remove the trailing slash so the expression becomes @{/submissions(...)}, which correctly resolves to the intended URL.

Fixes #110

Changes

  • 1 file changed, 1 line modified in leaderboard.html

…p link

The Thymeleaf URL expression /submissions/(...) produced a double slash
in the generated href (e.g. /submissions/?assignmentId=...), causing
a 404 when clicking the group button on the leaderboard.

Remove the extraneous '/' so the path variable syntax resolves to
/submissions?assignmentId=... as intended.
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.

Leaderboard group button doesn't open Group Submission History when clicked

1 participant