## [Bug] SQL Playground Returns 404 Error When Accessed from Integration Tests #192

Closed
opened 2026-05-24 16:10:33 +00:00 by enjin2310 · 2 comments

🧩 Summary

Attempting to open the SQL Playground from the Pruebas de Integración (Unity Tests) section results in a 404 Page Not Found error. The page fails to load and displays the message “La página que buscas no existe o puede haberse movido.”

🧪 Steps to Reproduce

  1. Navigate to Pruebas de Integración (Unity Tests).
  2. Click on Abrir Playground SQL.
  3. Observe that the browser redirects to learn.spikersoft.com/tools/sql-playground.
  4. The page displays a 404 error instead of loading the SQL Playground interface.

Expected Behavior

The SQL Playground should open normally, allowing users to run SQL queries and integration tests.

Actual Behavior

The page fails to load and shows a 404 error, indicating that the resource is missing or misrouted.

📸 Evidence

The attached screenshot shows the error message:

“Página no encontrada — La página que buscas no existe o puede haberse movido.”

🧠 Possible Root Cause

  • Broken or outdated route reference in the Unity Tests module.
  • SQL Playground endpoint (/tools/sql-playground) may have been renamed or removed.
  • Incorrect path mapping in the navigation or router configuration.

🔧 Suggested Fix

  1. Verify the route configuration for the SQL Playground in the Unity Tests module.
  2. Update the link to the correct endpoint (e.g., /tools/playground/sql or /tools/sql).
  3. Add a redirect rule for legacy URLs to prevent future 404 errors.

🌐 Environment

  • URL: learn.spikersoft.com/tools/sql-playground
  • Version: v2026.05.22b
  • Browser: Firefox (latest)
  • OS: Windows 10.0
  • User: Jorge (logged in)
### 🧩 Summary Attempting to open the **SQL Playground** from the **Pruebas de Integración (Unity Tests)** section results in a **404 Page Not Found** error. The page fails to load and displays the message “La página que buscas no existe o puede haberse movido.” ### 🧪 Steps to Reproduce 1. Navigate to **Pruebas de Integración (Unity Tests)**. 2. Click on **Abrir Playground SQL**. 3. Observe that the browser redirects to `learn.spikersoft.com/tools/sql-playground`. 4. The page displays a **404 error** instead of loading the SQL Playground interface. ### ✅ Expected Behavior The SQL Playground should open normally, allowing users to run SQL queries and integration tests. ### ❌ Actual Behavior The page fails to load and shows a **404 error**, indicating that the resource is missing or misrouted. ### 📸 Evidence The attached screenshot shows the error message: > “Página no encontrada — La página que buscas no existe o puede haberse movido.” ### 🧠 Possible Root Cause - Broken or outdated route reference in the **Unity Tests** module. - SQL Playground endpoint (`/tools/sql-playground`) may have been renamed or removed. - Incorrect path mapping in the navigation or router configuration. ### 🔧 Suggested Fix 1. Verify the route configuration for the SQL Playground in the **Unity Tests** module. 2. Update the link to the correct endpoint (e.g., `/tools/playground/sql` or `/tools/sql`). 3. Add a redirect rule for legacy URLs to prevent future 404 errors. ### 🌐 Environment - **URL:** learn.spikersoft.com/tools/sql-playground - **Version:** v2026.05.22b - **Browser:** Firefox (latest) - **OS:** Windows 10.0 - **User:** Jorge (logged in)
Owner

Root cause found: the Abrir playground SQL action targets the secondary tools router outlet (/tools/(tools:sql-playground)), but the coding-topic template bound that string straight to [routerLink]. When routerLink is given a string, Angular treats it as plain path segments and never parses the (outlet:path) auxiliary-outlet grouping — so it resolved to a non-existent route and 404'd. The i18n link data itself was already correct.

Fixed in spikersoft-angular PR #48 by navigating these actions with router.navigateByUrl() (which parses the full outlet URL, matching how the menu bar already opens this playground). Will close once that PR merges.

Root cause found: the *Abrir playground SQL* action targets the secondary `tools` router outlet (`/tools/(tools:sql-playground)`), but the coding-topic template bound that string straight to `[routerLink]`. When `routerLink` is given a string, Angular treats it as plain path segments and never parses the `(outlet:path)` auxiliary-outlet grouping — so it resolved to a non-existent route and 404'd. The i18n link data itself was already correct. Fixed in `spikersoft-angular` PR #48 by navigating these actions with `router.navigateByUrl()` (which parses the full outlet URL, matching how the menu bar already opens this playground). Will close once that PR merges.
Owner

Resolved in spikersoft-angular PR #48 (merged to master). Coding-topic action links now navigate via router.navigateByUrl, which correctly resolves the secondary tools-outlet URL, so Abrir playground SQL opens the SQL Playground instead of returning a 404. Closing.

Resolved in `spikersoft-angular` PR #48 (merged to `master`). Coding-topic action links now navigate via `router.navigateByUrl`, which correctly resolves the secondary `tools`-outlet URL, so **Abrir playground SQL** opens the SQL Playground instead of returning a 404. Closing.
Sign in to join this conversation.