Skip to content

Removes trailing slashes from 'spo get'#5929

Closed
milanholemans wants to merge 1 commit intopnp:mainfrom
milanholemans:sposet-trailingslash
Closed

Removes trailing slashes from 'spo get'#5929
milanholemans wants to merge 1 commit intopnp:mainfrom
milanholemans:sposet-trailingslash

Conversation

@milanholemans
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

image

Maybe something for another day.

Copy link
Copy Markdown
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
Copy Markdown
Member

Adam-it commented May 3, 2024

Good catch. We should definitely trim that

@milanholemans milanholemans force-pushed the sposet-trailingslash branch from 5c879e2 to 6221f44 Compare May 7, 2024 09:02
@milanholemans
Copy link
Copy Markdown
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
Copy Markdown
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.

3 participants