Skip to content

Published website showing a page that does not exist #2318

@jaideep156

Description

@jaideep156

Describe the bug
After removing a navigation field in _data/navigation.yml, it still shows the default page of that navigation field.

To Reproduce
Steps to reproduce the behavior:

  1. Fork the academicpages.github.io repository.
  2. Go to _data/navigation.yml
  3. Delete the following code block:
  - title: "Publications"
    url: /publications/

  - title: "Talks"
    url: /talks/ 
  1. Publish changes

Expected behavior
When I go to myusername.github.io/publications or myusername.github.io/talks , it should show the 404.md page since these pages do not exist (as we removed both the fields from _data/navigation.yml

Please help me to:
Redirect ANY links apart from /CV , /year-archive , /portfolio redirect to the 404.md page.

Screenshots
issue

Desktop Information

  • OS: Windows 11
  • Browser Chrome
  • Version: 127.0.6533.100

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationChanges to documentation only (e.g., README, Guide, Wiki Pages, etc.)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions