Routes Management
The module provides an admin interface for managing Prismic routes under Content > PrismicIO > Routes.
Accessing Routes
- Log into your Magento admin panel
- Navigate to Content > PrismicIO > Routes
- Here you can view and manage all Prismic routes
Managing Routes
Creating a Route
- Click "Add New Route"
- Fill in the required fields:
- Title: For admin reference
- Content Type: The Prismic content type (e.g., blog_post)
- Route: The URL path (must start with /, e.g., /blog)
- Store View: Select which store views this route applies to
Editing Routes
- Find the route in the grid
- Click "Edit" in the Action column
- Modify the route settings
- Click "Save Route"
Route Settings
- Title: Internal reference name
- Content Type: Matches your Prismic custom type
- Route: URL path pattern
- Store Views: Which stores show this content
- Status: Enable/disable the route
URL Structure
Routes define how Prismic content is accessed on your store:
Best Practices
- URL Structure
- Use clear, descriptive paths
- Keep URLs SEO-friendly
-
Consider multi-store impacts
-
Content Types
- Match Prismic custom types exactly
- One route per content type per store
-
Consider language variations
-
Store Views
- Assign routes appropriately
- Consider URL conflicts
- Plan for translations
Troubleshooting
- 404 Errors
- Verify route is enabled
- Check store view assignment
-
Confirm content type exists
-
URL Conflicts
- Check for duplicate routes
- Review store view assignments
-
Verify URL patterns
-
Content Not Showing
- Validate content type name
- Check store view settings
- Review route status