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

[57675] Fix Unified diff link when not at the root of a repository #16639

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

nsalguero
Copy link
Contributor

@nsalguero nsalguero commented Sep 5, 2024

Ticket

https://community.openproject.org/work_packages/57675/activity

What are you trying to accomplish?

Fixing the URL of the Unified diff link when comparing revisions and not being at the root of a repository.

The wrong URL looks like this: https://openproject.server/projects/a_project/repository/revisions/a_revision/diff/some_path.diff&rev_to=another_revision.
The good URL is: https://openproject.server/projects/a_project/repository/revisions/a_revision/diff.diff?repo_path=some_path&rev_to=another_revision.

What approach did you choose and why?

I modified the pattern of the wrong URL to ensure that the wrong URL is replaced by the good one.

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

Copy link
Contributor

@dombesz dombesz left a comment

Choose a reason for hiding this comment

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

Hi @nsalguero, thanks for your contribution! Can you please add some specs for the PR?

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

Successfully merging this pull request may close these issues.

3 participants