Skip to content

[BUG] 'Navigator' page does not link to actual patterns. #33

@theartcher

Description

@theartcher

Description

The navigator page does not properly link to an actual design pattern due to a broken URL link (see screenshot).

Reproduction Steps

Steps to reproduce the problematic behaviour

  1. Open navigator page.
  2. Press 'yes' on the first two questions'.
  3. Press 'Learn more'.
  4. Problem occurs.

Intended behaviour

I expect the link to properly work and link to an actual design pattern. This means;

  1. Allow the user to dynamically set the base URL through an .env file.
  2. Use this env file when redirecting the user to the pattern.
  3. Create a utility to fetch this .env function, or default to '/'.
  4. Create docs in the README to create the .env file.
  5. Update the GitHub Action to use this .env variable.

Screenshots / recordings

As shown in the screenshot below, the link gets a prefix, which isn't applicable in this situation.

Image

URL is https://www.designpatternpedia.nl/DesignPatternPedia/docs/creational/singleton
Should be https://www.designpatternpedia.nl/docs/creational/singleton/

Technologies used

Discovered on Firefox 145.0.2 (64-bit).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions