Skip to content

Commit

Permalink
fix: Remove the trailing slash for the URI
Browse files Browse the repository at this point in the history
When navigating on the Flagship app, we can pass in the
securiseUri method with  window['cozy']?.isSecureProtocol
=== true.

Result: we pass to the toString() method, and then we have
a trailing slash.

And since this uri is used when called by client.options.uri
some apps can concat that with other string without checking
if there is a trailing slash or not.

Apps should not do that, but since we have two different
behavior between the flagship and the no flagship app, we fix
that here.
  • Loading branch information
Crash-- committed Oct 3, 2023
1 parent 1ee586f commit 5cdc880
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 92 deletions.

0 comments on commit 5cdc880

Please sign in to comment.