Skip to content

Commit

Permalink
feat: remove redirects/broken links schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiazom committed Oct 14, 2024
1 parent c84d210 commit fe82b0d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 151 deletions.
6 changes: 0 additions & 6 deletions studio/deskStructure.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
CaseIcon,
CogIcon,
DoubleChevronRightIcon,
EarthGlobeIcon,
HeartIcon,
ImagesIcon,
Expand All @@ -24,7 +23,6 @@ import { compensationsId } from "./schemas/documents/compensations";
import { languageSettingsID } from "./schemas/documents/languageSettings";
import { pageBuilderID } from "./schemas/documents/pageBuilder";
import { brandAssetsID } from "./schemas/documents/siteSettings/brandAssets";
import { brokenLinkID } from "./schemas/documents/siteSettings/brokenLink";
import { localeID } from "./schemas/documents/siteSettings/locale";
import { soMeLinksID } from "./schemas/documents/siteSettings/socialMediaProfiles";
import { customerCasesPageID } from "./schemas/documents/specialPages/customerCasesPage";
Expand Down Expand Up @@ -122,10 +120,6 @@ const siteSettingSection = (S: StructureBuilder) =>
.documentId(defaultSeoID)
.title("Default SEO"),
),
S.listItem()
.title("Broken Links")
.icon(DoubleChevronRightIcon)
.child(S.documentTypeList(brokenLinkID).title("Redirects")),
]),
);

Expand Down
2 changes: 0 additions & 2 deletions studio/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import languageSettings from "./schemas/documents/languageSettings";
import pageBuilder from "./schemas/documents/pageBuilder";
import posts from "./schemas/documents/post";
import brandAssets from "./schemas/documents/siteSettings/brandAssets";
import brokenLink from "./schemas/documents/siteSettings/brokenLink";
import locale from "./schemas/documents/siteSettings/locale";
import navigationManager from "./schemas/documents/siteSettings/navigationManager";
import socialMediaLinks from "./schemas/documents/siteSettings/socialMediaProfiles";
Expand Down Expand Up @@ -40,7 +39,6 @@ export const schema: { types: SchemaTypeDefinition[] } = {
legalDocument,
compensations,
customerCasesPage,
brokenLink,
benefitsByLocation,
companyLocation,
defaultSeo,
Expand Down
140 changes: 0 additions & 140 deletions studio/schemas/documents/siteSettings/brokenLink.ts

This file was deleted.

4 changes: 1 addition & 3 deletions studio/schemas/schemaTypes/slug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function createSlugField(source: string) {
"Enter a unique URL path for the page. This path will be used in the website's address bar. " +
"A URL path, also known as a slug, is a URL-friendly version of the page title, used to create " +
"a human-readable and search engine optimized URL for the content. " +
"Note that the slug can not be changed after publication, but alternative slugs can be defined via Redirects.",
"Note that the slug can not be changed after publication.",
options: {
source,
maxLength: SLUG_MAX_LENGTH,
Expand All @@ -114,8 +114,6 @@ function createSlugField(source: string) {
to avoid breaking shared links
if document is already draft, this is handled through validation instead
if new slugs are needed, redirects can be used instead
*/
return document !== undefined && isPublished(document);
},
Expand Down

0 comments on commit fe82b0d

Please sign in to comment.