Skip to content

Repository name is included twice in path to autocomplete search results, resulting in 404s. #5

@skora-cpl

Description

@skora-cpl

Hi,

Thanks for making this; I've built https://clevepl.github.io/canopy-example/ and it's working well for us so far, with this example:

But I've noticed that the autocomplete search results return 404 errors.

The in-page search functions correctly; e.g. visit https://clevepl.github.io/second-template/search?type=work and then enter a search term;

and a full page search - e.g. https://clevepl.github.io/canopy-example/search?q=candy&type=work those links work;

But the links that appear in autocomplete results in 404s.

To reproduce:

  1. follow directions at https://github.com/canopy-iiif/app/blob/156e11a34b2dbd5fa819f56256d6cd336347a2d6/content/docs/user-guides/canopy-get-started.mdx to make a new repository (Which is what i did at https://github.com/clevepl/second-template)
  2. update canopy.yml with my manifest
  3. deploy to main
  4. visit https://clevepl.github.io/second-template/
  5. enter search term; let's say 'buckeye'
  6. visit one of the drop down entry menus
  7. what happens: receive a 404; https://clevepl.github.io/second-template/second-template/works/mr-gilberts-hats-2022.html

(note that https://clevepl.github.io/second-template/works/mr-gilberts-hats-2022.html is a valid link)

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