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

๐Ÿ†• Relative Links (NEW FEATURE)

These relative links are automatically converted to absolute paths:

๐Ÿ†• Internal Links in New Tab

These links open internal docs in new tabs within the docs-angular app:

New Tab Examples

System Documentation

App Links

Project Links

Core Pages

๐ŸŒ External Links (Open in New Tab)

These links should open in new tabs with external link icons:

Documentation Resources

Development Tools

Contact Links

๐Ÿ“Ž Anchor Links (Same Page Navigation)

These links should scroll to sections on this page:

๐Ÿงช Testing Instructions

What to Test:

  1. 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
  2. ๐Ÿ†• 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
  3. 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
  4. 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):

After (New System):

๐ŸŽฏ Performance Notes

Internal Link Performance:

External Link Security:

๐Ÿ” Debugging

If links aren't working as expected:

  1. Check Browser Console for error messages
  2. Look for routing logs like ๐Ÿ”— Internal link clicked: ...
  3. Verify link format follows the guidelines
  4. 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.