🔗 SimpleShortLink Test Page

Service Status: ✅ Running on http://localhost:5019
Database: Execute CreateDatabase.sql script first
Test Time:

✅ Valid Test Links (Should Redirect)

/q/hrf → https://chothuelangdaihoc.com/host-info /q/google → https://www.google.com /q/github → https://github.com /q/ms → https://www.microsoft.com

❌ Error Test Links (Should Return 404)

/q/expired → 404 (Expired URL) /q/inactive → 404 (Inactive URL) /q/notfound → 404 (Doesn't Exist) /q/ → 404 (Empty Source Code)

📊 Expected HTTP Status Codes

302 Found: Successful redirection (valid, active, not expired)
404 Not Found: URL not found, expired, or inactive
500 Internal Server Error: Database connection or server issues

🔧 Testing Instructions

  1. Execute the CreateDatabase.sql script in SQL Server
  2. Ensure the application is running on http://localhost:5019
  3. Click the test links above to verify redirection behavior
  4. Check the application console for logging output
  5. Valid links should redirect to their destinations
  6. Error links should show "URL not found or expired" message

📝 Manual Testing URLs

You can also test directly in your browser address bar:

http://localhost:5019/q/hrf
http://localhost:5019/q/google
http://localhost:5019/q/github
http://localhost:5019/q/ms
http://localhost:5019/q/expired
http://localhost:5019/q/notfound