Fix project type in Dashboard & settings URLs Closes #1066 (#1078)

This commit is contained in:
Prospector 2023-04-07 18:39:04 -07:00 committed by GitHub
parent c731515b94
commit 604683efd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 4 deletions

View File

@ -64,7 +64,9 @@
<span class="label__title">URL</span>
</label>
<div class="text-input-wrapper">
<div class="text-input-wrapper__before">https://modrinth.com/mod/</div>
<div class="text-input-wrapper__before">
https://modrinth.com/{{ $getProjectTypeForUrl(project.project_type, project.loaders) }}/
</div>
<input
id="project-slug"
v-model="slug"

View File

@ -229,7 +229,12 @@
/>
</div>
<div>
<nuxt-link tabindex="-1" :to="`/${project.project_type}/${project.slug}`">
<nuxt-link
tabindex="-1"
:to="`/${$getProjectTypeForUrl(project.project_type, project.loaders)}/${
project.slug
}`"
>
<Avatar
:src="project.icon_url"
aria-hidden="true"
@ -248,7 +253,9 @@
<nuxt-link
class="hover-link wrap-as-needed"
:to="`/${project.project_type}/${project.slug}`"
:to="`/${$getProjectTypeForUrl(project.project_type, project.loaders)}/${
project.slug
}`"
>
{{ project.title }}
</nuxt-link>
@ -270,7 +277,9 @@
<div>
<nuxt-link
class="square-button"
:to="`/${project.project_type}/${project.slug}/settings`"
:to="`/${$getProjectTypeForUrl(project.project_type, project.loaders)}/${
project.slug
}/settings`"
>
<SettingsIcon />
</nuxt-link>