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

Removes trailing slashes from 'spo get' #5929

Closed
wants to merge 1 commit into from

Conversation

milanholemans
Copy link
Contributor

While using the CLI, I used spo set command. I just copied the tenant URL from my browser and noticed it has a trailing slash. While the API requests are still working, it doesn't look nice in the debug logs.
I also enforced that the URL parameter is a string.

image

@martinlingstuyl martinlingstuyl self-assigned this May 3, 2024
@martinlingstuyl
Copy link
Contributor

We have this in a lot of other places as well:

image

Maybe something for another day.

Copy link
Contributor

@martinlingstuyl martinlingstuyl left a comment

Choose a reason for hiding this comment

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

Nice work!

@Adam-it
Copy link
Contributor

Adam-it commented May 3, 2024

Good catch. We should definitely trim that

@milanholemans
Copy link
Contributor Author

@martinlingstuyl, I made a small update to this PR. In #5955 we introduced a new util function removeTrailingSlashes since this might come in handy at other places as well. So updated this PR to use that util function instead. I hope you don't mind.

@martinlingstuyl
Copy link
Contributor

Merged manually, thank you! 🎉

@milanholemans milanholemans deleted the sposet-trailingslash branch May 7, 2024 14:54
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.

None yet

3 participants