diff --git a/pages/animelistitem/animelistitem.pixy b/pages/animelistitem/animelistitem.pixy index 4a293b93..adc57cfd 100644 --- a/pages/animelistitem/animelistitem.pixy +++ b/pages/animelistitem/animelistitem.pixy @@ -25,7 +25,7 @@ component AnimeListItem(viewUser *arn.User, item *arn.AnimeListItem, anime *arn. InputTextArea("Notes", item.Notes, "Notes", "Your notes") .buttons.mountable - a.ajax.button(href="/+" + viewUser.Nick + "/animelist") + a.ajax.button(href="/+" + viewUser.Nick + "/animelist/watching") Icon("list") span View collection a.ajax.button(href=anime.Link()) diff --git a/scripts/Actions.ts b/scripts/Actions.ts index 11d5eb77..875765a8 100644 --- a/scripts/Actions.ts +++ b/scripts/Actions.ts @@ -257,7 +257,7 @@ export function removeAnimeFromCollection(arn: AnimeNotifier, button: HTMLElemen throw body } - return arn.app.load("/+" + userNick + "/animelist") + return arn.app.load("/+" + userNick + "/animelist/watching") }) .catch(console.error) .then(() => arn.loading(false)) diff --git a/tests.go b/tests.go index 23b7cac9..086b95e8 100644 --- a/tests.go +++ b/tests.go @@ -30,10 +30,30 @@ var routeTests = map[string][]string{ "/+Akyoto/animelist", }, - "/user/:nick/animelist/:id": []string{ + "/user/:nick/animelist/anime/:id": []string{ "/+Akyoto/animelist/7929", }, + "/user/:nick/animelist/watching": []string{ + "/+Akyoto/animelist/watching", + }, + + "/user/:nick/animelist/completed": []string{ + "/+Akyoto/animelist/completed", + }, + + "/user/:nick/animelist/planned": []string{ + "/+Akyoto/animelist/planned", + }, + + "/user/:nick/animelist/hold": []string{ + "/+Akyoto/animelist/hold", + }, + + "/user/:nick/animelist/dropped": []string{ + "/+Akyoto/animelist/dropped", + }, + // Pages "/anime/:id": []string{ "/anime/1",