theme-routing-patterns

Enforce locationPrefix-based routing patterns for theme navigation components.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/WorkSync-Developement/developertestrepo --skill theme-routing-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: theme-routing-patterns
Source: https://github.com/WorkSync-Developement/developertestrepo/tree/main/.windsurf/skills/theme-routing-patterns
Command: npx skills add https://github.com/WorkSync-Developement/developertestrepo --skill theme-routing-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures theme navigation uses locationPrefix and never relies on hardcoded routes, preventing breakages when rendering across multiple locations.

Core Features & Use Cases

  • LocationPrefix-driven routing: Always derive routes from locationPrefix, avoiding hard-coded paths.
  • Single vs Multi-location support: Applies correct route patterns for home, about, policies, blog, and location-specific pages.
  • Use Case: When building variants for multiple offices, navigation automatically adapts to the active location.

Quick Start

To implement, reference the routing patterns in your theme components and pass locationPrefix from the page container.

Frequently Asked Questions about theme-routing-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent broken navigation when building frontend themes for multiple locations?

LocationPrefix routing avoids hard-coded paths by deriving routes dynamically from the active location, ensuring navigation adapts automatically across single and multi-location sites.

What is locationPrefix in frontend routing and when do I need it?

LocationPrefix is a routing variable that prefixes navigation paths dynamically. You need it when rendering themes across multiple locations to keep Home, About, and Policies pages routing correctly.

How do I implement location-aware routing patterns in theme components?

Reference routing patterns in theme components and pass the locationPrefix variable from the page container down to navigation elements to enforce location-aware routing.

Does locationPrefix routing work for both single-location and multi-location sites?

Yes, locationPrefix routing applies correct route patterns for Home, About, Policies, Blog, and Location pages across both single-location and multi-location site configurations.

Why do my theme navigation links break on multi-location sites?

Theme navigation breaks when components use hard-coded paths instead of deriving routes from locationPrefix, causing URL mismatches when rendering across different active locations.

What pages should use location-aware routing patterns instead of hard-coded paths?

Home, About, Policies, Blog, and Location-specific pages should all use location-aware routing patterns to maintain correct navigation across every active location variant.