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

Allow application to pass external links in navigation #43251

Merged
merged 3 commits into from
Feb 12, 2024

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Feb 1, 2024

Summary

External application returns external links for Nextcloud navigation.
But the NavigationController was attempting to turn those into local link, resulting in craziness like http://stable26.local/https://duckduckgo.com - See related issue.

Checklist

@come-nc come-nc added the 3. to review Waiting for reviews label Feb 1, 2024
@come-nc come-nc added this to the Nextcloud 29 milestone Feb 1, 2024
@come-nc come-nc self-assigned this Feb 1, 2024
Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

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

Looks like a reasonable fix to me, didn't test though

@come-nc
Copy link
Contributor Author

come-nc commented Feb 1, 2024

/backport to stable28

@come-nc
Copy link
Contributor Author

come-nc commented Feb 1, 2024

/backport to stable27

@come-nc
Copy link
Contributor Author

come-nc commented Feb 1, 2024

/backport to stable26

@nickvergessen nickvergessen requested review from julien-nc and removed request for sorbaugh February 1, 2024 17:42
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc force-pushed the fix/support-external-urls-in-navigation branch from 5088e58 to 6fc5cef Compare February 6, 2024 08:36
@come-nc come-nc requested review from a team, ArtificialOwl, blizzz and Altahrim and removed request for a team February 6, 2024 13:18
@camilasan
Copy link
Member

Can this as it is now be used as a patch in production?

@come-nc
Copy link
Contributor Author

come-nc commented Feb 12, 2024

Can this as it is now be used as a patch in production?

Yes I’d say it’s pretty safe.

@blizzz blizzz merged commit e053ce2 into master Feb 12, 2024
141 checks passed
@blizzz blizzz deleted the fix/support-external-urls-in-navigation branch February 12, 2024 10:12
Copy link

backportbot bot commented Feb 12, 2024

The backport to stable26 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable26
git pull origin stable26

# Create the new backport branch
git checkout -b backport/43251/stable26

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 4fb5c15d 4f69f49a 6fc5cef6

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/43251/stable26

Error: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Copy link

backportbot bot commented Feb 12, 2024

The backport to stable27 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable27
git pull origin stable27

# Create the new backport branch
git checkout -b backport/43251/stable27

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 4fb5c15d 4f69f49a 6fc5cef6

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/43251/stable27

Error: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@ChristophWurst
Copy link
Member

/backport to stable28

@ChristophWurst
Copy link
Member

/backport to stable27

Copy link

backportbot bot commented Aug 21, 2024

The backport to stable28 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable28
git pull origin stable28

# Create the new backport branch
git checkout -b backport/43251/stable28

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 4fb5c15d 4f69f49a 6fc5cef6

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/43251/stable28

Error: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Copy link

backportbot bot commented Aug 21, 2024

The backport to stable27 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable27
git pull origin stable27

# Create the new backport branch
git checkout -b backport/43251/stable27

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 4fb5c15d 4f69f49a 6fc5cef6

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/43251/stable27

Error: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

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

Successfully merging this pull request may close these issues.

[Bug]: ocs/v2.php/core/navigation/apps?absolute=true returns invalid url
7 participants