openlibhums / openlibhums/janeway
Collections nav item does not work in path mode
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Python
- Stars
- 238
- Forks
- 97
- Avg merge
- 9d 1h
- Merged PRs (30d)
- 8
Description
Problem
The default collections nav item is created with a leading slash:
This causes path mode journals to jump to the press level, resulting in a 404.
To replicate:
- Put a journal in path mode
- Click "Enable" on the collections nav item in the Content Manager
- Click on the nav item that is generated
- See press-level 404
Proposed solution
Generate the URL in a way that will work for both path and domain modes.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read src/cms/models.py at the linked collections navigation item definition, then reproduce the issue with a journal in path mode using the Content Manager steps. Verify that the generated collections URL works in both path and domain modes and no longer leads to a press-level 404.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100