Welcome to the MagicFrame wiki! This documentation provides detailed information about MagicFrame, a lightweight iframe redirection solution with query parameter preservation and dynamic title updates.
- Architecture Overview - Understand how MagicFrame works
- Security Considerations - Important security information when using iframes
- Browser Compatibility - Browser support and limitations
- Troubleshooting - Common issues and solutions
MagicFrame is a simple yet powerful HTML/JavaScript solution that creates a full-page iframe which:
- Redirects to a specified target URL
- Preserves all query parameters and hash fragments from the original URL
- Updates the page title to match the title of the loaded content
This creates a seamless experience where users can access content from another domain while maintaining the original URL structure and getting appropriate page titles.
MagicFrame is particularly useful for:
- URL Shorteners with Parameter Preservation: Create short URLs that redirect to longer ones while maintaining all parameters
- White-Labeled Services: Present third-party services under your own domain
- Content Embedding: Embed external content while keeping your domain in the address bar
- Redirect Layers: Add analytics or tracking while preserving the complete user experience
For basic setup and usage, refer to the README in the main repository.
For more detailed information, explore the wiki sections linked above.
┌─────────────────────┐ ┌─────────────────────┐ ┌─────────────────────┐
│ │ │ │ │ │
│ User visits URL │──────► MagicFrame loads │──────► Target site loads │
│ with parameters │ │ iframe with URL │ │ in iframe │
│ │ │ parameters │ │ │
└─────────────────────┘ └─────────────────────┘ └──────────┬──────────┘
│
│
┌─────────────────────┐ │
│ │ │
│ Page title updated ◄─────────────────┘
│ to match iframe │
│ content │
└─────────────────────┘
- User visits your MagicFrame URL with parameters (e.g.,
yourdomain.com/path?param=value#hash) - MagicFrame loads a full-page iframe pointing to your configured target URL
- All query parameters and hash fragments are appended to the target URL
- Once the iframe content loads, MagicFrame updates the page title to match the iframe content
For a more detailed technical explanation, see the Architecture Overview.