modrinth / code

The Modrinth monorepo containing all code which powers Modrinth!
https://modrinth.com
Other
862 stars 150 forks source link

Projects without type will link to non-existent modrinth.com/projects #2132

Open worldwidepixel opened 1 month ago

worldwidepixel commented 1 month ago

Please confirm the following.

What browsers are you seeing the problem on?

Chrome (including Arc, Brave, Opera, Vivaldi)

Describe the bug

If you have a Modrinth project that has no uploaded versions (meaning it's not yet a mod, plugin, etc.), the project type tag (that will say Project) links to /projects, a non-existent page.

Steps to reproduce

  1. Create or open a Modrinth project that lacks a type
  2. Click on the tag-link that says Project image

Expected behavior

This should not link anywhere, or should just go to the home-page.

Additional context

This seems to be stemming from a lack of a check if the project is generic or not.

worldwidepixel commented 1 month ago

This feels really simple, might try fixing myself locally out of curiosity.