Link Testing Demo
Interactive demo page to test internal and external link functionality
๐ Link Testing Demo
This page demonstrates the enhanced link functionality in the docs-angular system. Use this page to test both internal and external links.
โก Internal Links (Fast Client-Side Navigation)
These links should navigate instantly without page reload:
Documentation Links
- Documentation Home - Main documentation index
- Add Documentation Guide - How to add new docs
- Link Guidelines - Complete link formatting guide
๐ Relative Links (NEW FEATURE)
These relative links are automatically converted to absolute paths:
- Documentation Home - Relative path to documentation
- Add Documentation Guide - Relative path to guide
- Link Guidelines - Relative path to guidelines
๐ Internal Links in New Tab
These links open internal docs in new tabs within the docs-angular app:
New Tab Examples
- Documentation Home - Opens in new tab with icon
- Add Documentation Guide - Full title syntax
- Link Guidelines - Short syntax
- Configuration Guide - System configuration
System Documentation
- Enhanced Docs System - System architecture
- Navigation System - Navigation improvements
- Intelligent Guide System - Auto-guide system
App Links
- Applications Overview - All applications
- Singularity App - Singularity documentation
- Editor Web - Editor Web documentation
- Space Map - Space Map documentation
Project Links
- GoGrab Pulse - GoGrab Pulse project
- GoGrab Space - GoGrab Space project
- Theme System - Theme system documentation
Core Pages
- Getting Started - Getting started guide
- Troubleshooting - Troubleshooting guide
๐ External Links (Open in New Tab)
These links should open in new tabs with external link icons:
Documentation Resources
- Angular Documentation - Official Angular docs
- Nx Documentation - Nx monorepo toolkit
- TypeScript Handbook - TypeScript documentation
- MDN Web Docs - Web development reference
Development Tools
Contact Links
- Email Support - Send us an email
- Phone Support - Call us directly
๐ Anchor Links (Same Page Navigation)
These links should scroll to sections on this page:
- Jump to Internal Links - Go to internal links section
- Jump to External Links - Go to external links section
- Jump to Testing Instructions - Go to testing section
- Jump to Performance Notes - Go to performance section
๐งช Testing Instructions
What to Test:
Internal Links:
- Click any internal link above
- โ Should navigate instantly without page reload
- โ Should show smooth transitions between pages
- โ Should maintain browser history (back button works)
- โ
Console should show:
๐ Internal link clicked: /path - using Angular routing
๐ Relative Links (NEW):
- Click any relative link above (starting with
../) - โ Should convert to absolute path automatically
- โ Should navigate to correct destination (same as absolute links)
- โ Should work within project boundaries (monorepo-aware)
- โ
Console should show:
๐ Relative link processed: ../path โ /absolute/path
- Click any relative link above (starting with
External Links:
- Click any external link above
- โ Should open in new tab automatically
- โ Should show external link icon next to the text
- โ Should keep this page open in the original tab
Anchor Links:
- Click any anchor link above
- โ Should scroll to the target section smoothly
- โ Should update URL with the fragment (#section-name)
- โ Should work with browser back/forward
Performance Comparison:
Before (Old System):
- ๐ Full page reload on every link click
- โฑ๏ธ 2-3 seconds loading time
- ๐ Lost scroll position and application state
- ๐ Server request for every navigation
After (New System):
- โก Instant navigation for internal links
- โฑ๏ธ <100ms transition time
- ๐พ Preserved scroll position and state
- ๐ Client-side routing only
๐ฏ Performance Notes
Internal Link Performance:
- Navigation Speed: ~50-100ms (vs 2-3 seconds)
- Network Requests: 0 additional requests
- Memory Usage: Minimal (reuses existing components)
- User Experience: Smooth, app-like navigation
External Link Security:
target="_blank"- Opens in new tabrel="noopener noreferrer"- Prevents security vulnerabilities- Visual indicator - Users know it's external before clicking
๐ Debugging
If links aren't working as expected:
- Check Browser Console for error messages
- Look for routing logs like
๐ Internal link clicked: ... - Verify link format follows the guidelines
- Test in different browsers to ensure compatibility
โ Expected Behavior Summary
| Link Type | Behavior | Visual Indicator | Performance |
|---|---|---|---|
| Internal | Fast client-side routing | Hover animation | โก Instant |
| External | New tab with security | External link icon | ๐ Secure |
| Anchor | Smooth scroll to section | URL fragment update | ๐ Smooth |
๐ Test completed? All links should now provide a fast, smooth, and secure navigation experience!
For more information, see the Link Guidelines or Add Documentation Guide.