Skip to content

Fix canonical WordPress CalorieApp route - #26

Merged
xrpbanks merged 3 commits into
mainfrom
fix/wordpress-calorieapp-route
Aug 30, 2026
Merged

Fix canonical WordPress CalorieApp route#26
xrpbanks merged 3 commits into
mainfrom
fix/wordpress-calorieapp-route

Conversation

@xrpbanks

Copy link
Copy Markdown
Contributor

Summary

  • point the standalone CalorieApp launcher to the canonical WordPress page route
  • align the frontend environment example
  • add a regression test that rejects the non-canonical clean route

Reason

The site uses an /index.php/ permalink structure. The previous /calorieapp/ target returns 404, while WordPress page 7880 is prepared for /index.php/calorieapp/.

Rollback

Revert this pull request and redeploy the previous live commit 62ed99a.

Point standalone CalorieApp sign-in to the canonical WordPress page route.
Add a test to ensure frontend uses the canonical WordPress URL.
Copilot AI lite review requested due to automatic review settings August 30, 2026 03:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the standalone CalorieApp launcher to use the canonical WordPress permalink route (/index.php/calorieapp/) and adds a regression test to prevent reintroducing the non-canonical clean route (/calorieapp/) that returns 404 in the current WordPress configuration.

Changes:

  • Updated the frontend launcher fallback URL to https://calorietoken.net/index.php/calorieapp/.
  • Aligned frontend/.env.example to the canonical WordPress launcher URL.
  • Added a backend pytest regression test ensuring the canonical URL is present (and the non-canonical URL is absent) in the relevant frontend sources.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
frontend/components/XamanLoginPanel.tsx Updates the default WordPress launcher URL used when opening CalorieApp outside the embedded page.
frontend/.env.example Updates the example env var to match the canonical WordPress route.
backend/tests/test_frontend_configuration.py Adds a regression test guarding against reintroducing the non-canonical /calorieapp/ URL in frontend sources.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@xrpbanks
xrpbanks merged commit 58dd4b8 into main Aug 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants