Skip to content

Collections nav item does not work in path mode #5002

@joemull

Description

@joemull

Problem

The default collections nav item is created with a leading slash:

"link": "/collections/%s" % (issue_type.code),

This causes path mode journals to jump to the press level, resulting in a 404.

To replicate:

  1. Put a journal in path mode
  2. Click "Enable" on the collections nav item in the Content Manager
  3. Click on the nav item that is generated
  4. See press-level 404

Proposed solution

Generate the URL in a way that will work for both path and domain modes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions