Legal Document Router — Site Navigation
Purpose
Route visitors who are searching for a specific type of legal document — template, sample, or AI-generated draft — to the document library page for that document type, pre-filtered by jurisdiction where determinable. The document library is the platform's self-serve template repository and primary document-discovery surface.
Inputs / signals
| Signal type |
Examples |
Filter applied |
| Document name |
"NDA template", "employment agreement", "shareholders agreement" |
doc_type=[slug] |
| Document + jurisdiction |
"UAE NDA", "KSA employment contract", "Lebanon lease agreement" |
doc_type=[slug]&jurisdiction=[jur] |
| Document + party type |
"freelancer contract", "SaaS agreement", "B2B services contract" |
doc_type=[slug]&context=[context] |
| Broad category |
"contract templates", "corporate documents", "family law forms" |
category=[category] |
Direct /documents navigation |
Landing on /documents |
Show all, default sort (most popular / recently updated) |
Logic
1. Parse: document name keyword + optional jurisdiction keyword.
2. Match document name against document registry (exact or fuzzy):
- NDA, confidentiality agreement → nda
- Employment agreement, employment contract → employment-agreement
- Shareholders agreement, SHA, JV agreement → shareholders-agreement
- Lease, tenancy agreement → lease-agreement
- Service agreement, consultancy agreement → service-agreement
- ... (full registry maintained separately)
3. Match jurisdiction from query (UAE, KSA, LB, DIFC, ADGM, etc.)
4. Route to: /documents?type=[slug]&jurisdiction=[jur]
5. If no document match: route to /documents (unfiltered) with search bar focused.
Document library page requirements
Each filtered document library page shows:
- Document type name + plain-language description.
- Sample document preview (first page / key sections).
- Jurisdiction variants (e.g., UAE onshore version vs DIFC version vs KSA version).
- Last updated date and jurisdiction law status note (law changes — always verify).
- CTA options: "View template", "Draft with AI", "Download PDF sample".
- Lawyer review badge (if the template has been reviewed by a jurisdiction-specialist lawyer).
MENA document library priorities
The following document types are high-priority for MENA coverage and should be surfaced prominently:
- NDA / Confidentiality Agreement: UAE onshore, DIFC, KSA, Lebanon, Egypt variants.
- Employment Agreement: UAE Labour Law (Federal Decree-Law No. 33 of 2021), KSA Labour Law, Lebanese Labour Code.
- Shareholders Agreement / JV Agreement: DIFC, ADGM, UAE onshore, KSA.
- Commercial Lease: UAE (RERA-governed), KSA, Lebanon.
- Service Agreement / Consultancy Agreement: UAE, KSA, DIFC.
- Loan Agreement: UAE, KSA, DIFC, ADGM — noting Islamic finance alternatives.
- Trademark License: UAE, KSA (noting GCC trademark system).
- Power of Attorney: UAE (notarized), KSA (notarized Tawthiq), Lebanon.
Jurisdictional caveat (mandatory on all document pages)
Every document page must include:
This template is for general guidance only. Legal requirements vary by jurisdiction and change over time. Have any document reviewed by a qualified lawyer in the relevant jurisdiction before signing or filing.
Related skills
- [[site-clause-router]] — routing for specific clause queries within documents
- [[site-ai-feature-router]] — routing to AI drafting features
- [[site-feature-router]] — general feature-page routing
- [[site-solutions-router]] — persona-based routing to document types relevant to that persona
1---2name: site-legal-document-router3description: Use when a site visitor searches for or navigates to a legal document type in the document library. Routes requests to the document library page filtered by document type and/or jurisdiction, allowing users to browse templates, view sample documents, and access AI-assisted drafting for a specific document category (NDA, employment agreement, SHA, lease, etc.) across MENA and other covered jurisdictions.4license: MIT5---67# Legal Document Router — Site Navigation89## Purpose1011Route visitors who are searching for a specific type of legal document — template, sample, or AI-generated draft — to the document library page for that document type, pre-filtered by jurisdiction where determinable. The document library is the platform's self-serve template repository and primary document-discovery surface.1213## Inputs / signals1415| Signal type | Examples | Filter applied |16|-------------|---------|----------------|17| Document name | "NDA template", "employment agreement", "shareholders agreement" | `doc_type=[slug]` |18| Document + jurisdiction | "UAE NDA", "KSA employment contract", "Lebanon lease agreement" | `doc_type=[slug]&jurisdiction=[jur]` |19| Document + party type | "freelancer contract", "SaaS agreement", "B2B services contract" | `doc_type=[slug]&context=[context]` |20| Broad category | "contract templates", "corporate documents", "family law forms" | `category=[category]` |21| Direct `/documents` navigation | Landing on `/documents` | Show all, default sort (most popular / recently updated) |2223## Logic2425```261. Parse: document name keyword + optional jurisdiction keyword.272. Match document name against document registry (exact or fuzzy):28 - NDA, confidentiality agreement → nda29 - Employment agreement, employment contract → employment-agreement30 - Shareholders agreement, SHA, JV agreement → shareholders-agreement31 - Lease, tenancy agreement → lease-agreement32 - Service agreement, consultancy agreement → service-agreement33 - ... (full registry maintained separately)343. Match jurisdiction from query (UAE, KSA, LB, DIFC, ADGM, etc.)354. Route to: /documents?type=[slug]&jurisdiction=[jur]365. If no document match: route to /documents (unfiltered) with search bar focused.37```3839## Document library page requirements4041Each filtered document library page shows:42- Document type name + plain-language description.43- Sample document preview (first page / key sections).44- Jurisdiction variants (e.g., UAE onshore version vs DIFC version vs KSA version).45- Last updated date and jurisdiction law status note (law changes — always verify).46- CTA options: "View template", "Draft with AI", "Download PDF sample".47- Lawyer review badge (if the template has been reviewed by a jurisdiction-specialist lawyer).4849## MENA document library priorities5051The following document types are high-priority for MENA coverage and should be surfaced prominently:52- **NDA / Confidentiality Agreement**: UAE onshore, DIFC, KSA, Lebanon, Egypt variants.53- **Employment Agreement**: UAE Labour Law (Federal Decree-Law No. 33 of 2021), KSA Labour Law, Lebanese Labour Code.54- **Shareholders Agreement / JV Agreement**: DIFC, ADGM, UAE onshore, KSA.55- **Commercial Lease**: UAE (RERA-governed), KSA, Lebanon.56- **Service Agreement / Consultancy Agreement**: UAE, KSA, DIFC.57- **Loan Agreement**: UAE, KSA, DIFC, ADGM — noting Islamic finance alternatives.58- **Trademark License**: UAE, KSA (noting GCC trademark system).59- **Power of Attorney**: UAE (notarized), KSA (notarized Tawthiq), Lebanon.6061## Jurisdictional caveat (mandatory on all document pages)6263Every document page must include:64> *This template is for general guidance only. Legal requirements vary by jurisdiction and change over time. Have any document reviewed by a qualified lawyer in the relevant jurisdiction before signing or filing.*6566## Related skills6768- [[site-clause-router]] — routing for specific clause queries within documents69- [[site-ai-feature-router]] — routing to AI drafting features70- [[site-feature-router]] — general feature-page routing71- [[site-solutions-router]] — persona-based routing to document types relevant to that persona