Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Adapt URLs generated in the backend to new routes #6649

Merged
merged 4 commits into from
Feb 12, 2025

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Jan 8, 2025

This fixes an issue reported by @peterwebdesign that links in activity emails or the activity stream may not work as they were always generated with index.php and the vue router redirect did not work properly with legacy hash based urls.

Besides fixing the hash detection to redirect from #/board/123 to /board/123 this also adapt all cases where old URLs were still generated.

@luka-nextcloud
Copy link
Contributor

@juliusknorr Code change looks ok but could you check cypress and unit tests?

@juliusknorr juliusknorr force-pushed the fix/redirect-no-rewrite branch 3 times, most recently from 67315aa to 1177d08 Compare January 17, 2025 10:19
@juliusknorr
Copy link
Member Author

Cypress catched a bug that resulted in an endless recursion, fixed with my last commit.

@grnd-alt grnd-alt force-pushed the fix/redirect-no-rewrite branch from edb5fd4 to 8314ca7 Compare February 11, 2025 08:43
@grnd-alt
Copy link
Member

update the branch with latest main to have correct nc versions for cypress

Copy link
Contributor

🐢 Performance warning.
It looks like the query count of the integration tests increased with this PR.
Database query count is now 71780 was 71221 (+0.78%)
Please check your code again. If you added a new test this can be expected and the base value in tests/integration/base-query-count.txt can be increased.

@juliusknorr juliusknorr force-pushed the fix/redirect-no-rewrite branch from 8314ca7 to 1b2a352 Compare February 12, 2025 20:56
@juliusknorr juliusknorr merged commit 41e97d7 into main Feb 12, 2025
36 of 37 checks passed
@juliusknorr juliusknorr deleted the fix/redirect-no-rewrite branch February 12, 2025 21:32
@juliusknorr
Copy link
Member Author

/backport to stable31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants