Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supprime la page Contexte #924

Merged
merged 3 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions confiture-web-app/src/components/layout/SiteHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ const route = useRoute();
* - if the user is connected
*/
const headerComponent = computed(() => {
if (
route.name === "report" ||
route.name === "context" ||
route.name === "a11y-statement"
) {
if (route.name === "report" || route.name === "a11y-statement") {
return DeliverableHeader;
}

Expand Down
313 changes: 0 additions & 313 deletions confiture-web-app/src/pages/report/ContextPage.vue

This file was deleted.

4 changes: 0 additions & 4 deletions confiture-web-app/src/pages/report/ReportPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,6 @@ const siteUrl = computed(() => {
<span class="fr-sr-only">(nouvelle fenêtre)</span>
</RouterLink>
</p>

<RouterLink class="fr-link" :to="{ name: 'context' }">
Voir le contexte de l’audit
</RouterLink>
</div>

<div class="fr-tabs">
Expand Down
18 changes: 0 additions & 18 deletions confiture-web-app/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import ContactPage from "./pages/misc/ContactPage.vue";
import LegalPage from "./pages/misc/LegalPage.vue";
import PrivacyPage from "./pages/misc/PrivacyPage.vue";
import SiteMapPage from "./pages/misc/SiteMapPage.vue";
import ContextPage from "./pages/report/ContextPage.vue";
import ReportPage from "./pages/report/ReportPage.vue";
import RoadmapPage from "./pages/RoadmapPage.vue";
import StatementPage from "./pages/StatementPage.vue";
Expand Down Expand Up @@ -242,23 +241,6 @@ const router = createRouter({
}
},
// Report pages
{
path: "/rapport/:uniqueId/contexte",
name: "context",
component: ContextPage,
meta: {
name: "Contexte",
hideHomeLink: true
}
},
// TODO: remove this redirect in few months (17/04/2024)
{
path: "/rapports/:uniqueId/contexte",
name: "context-old",
redirect: () => {
return { name: "context" };
}
},
{
path: "/rapport/:uniqueId/:tab?",
name: "report",
Expand Down
Loading