diff --git a/src/lms/ui/LmsApplication.cpp b/src/lms/ui/LmsApplication.cpp index 35dcc8c9..67481965 100644 --- a/src/lms/ui/LmsApplication.cpp +++ b/src/lms/ui/LmsApplication.cpp @@ -326,7 +326,7 @@ LmsApplication::handleException(LmsApplicationException& e) Wt::WPushButton* btn {t->bindNew("btn-go-home", Wt::WString::tr("Lms.Error.go-home"))}; btn->clicked().connect([this]() { - redirect("."); + redirect(defaultPath); }); } diff --git a/src/lms/ui/explore/ArtistView.cpp b/src/lms/ui/explore/ArtistView.cpp index 71f58b6a..58bf1f4d 100644 --- a/src/lms/ui/explore/ArtistView.cpp +++ b/src/lms/ui/explore/ArtistView.cpp @@ -71,7 +71,7 @@ Artist::refreshView() const auto artistId {StringUtils::readAs(wApp->internalPathNextPart("/artist/"))}; if (!artistId) - return; + throw ArtistNotFoundException {*artistId}; const std::vector similarArtistIds {Service::get()->getSimilarArtists(LmsApp->getDbSession(), *artistId, 5)}; diff --git a/src/lms/ui/explore/ReleaseView.cpp b/src/lms/ui/explore/ReleaseView.cpp index 4c9d10b7..1bdb41fc 100644 --- a/src/lms/ui/explore/ReleaseView.cpp +++ b/src/lms/ui/explore/ReleaseView.cpp @@ -74,7 +74,7 @@ Release::refreshView() const auto releaseId {StringUtils::readAs(wApp->internalPathNextPart("/release/"))}; if (!releaseId) - return; + throw ReleaseNotFoundException {*releaseId}; const std::vector similarReleasesIds {Service::get()->getSimilarReleases(LmsApp->getDbSession(), *releaseId, 6)};