You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Website Redirect
A simple web application that redirects users to a link specified in the URL parameters.
## How to Use
### Basic Usage
1. Open `index.html` in a web browser
2. Add a `redirect` parameter to the URL with the target link
3. The page will immediately redirect to that link
### URL Format
```
https://yourdomain.com/index.html?redirect=https://target-website.com
```
### Examples
- `index.html?redirect=https://google.com`
- `index.html?redirect=https://github.com`
- `index.html?redirect=https://example.com/some-page`
## Features
- **Immediate Redirect**: Instantly redirects if a valid URL is found in the redirect parameter
- **URL Validation**: Validates URLs before redirecting
- **Error Handling**: Shows error messages only if no valid redirect URL is provided
- **Minimal Interface**: Clean, simple page with no unnecessary content
## How It Works
1. The application extracts the `redirect` parameter from the URL
2. Validates that the extracted value is a valid URL
3. Immediately redirects to the target URL if valid
4. Shows error information only if no valid redirect URL is provided
## File Structure
```
Redirect/
├── index.html # Main redirect application
└── README.md # This documentation
```
## Browser Compatibility
This application works in all modern browsers that support JavaScript ES6 features.
## Security Note
This application redirects to any URL provided in the parameter. Make sure to use it responsibly and only redirect to trusted websites. # redirectLink