Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
preserve query and fragment part of the URI while redirecting for rel…
Browse files Browse the repository at this point in the history
…ative paths (swagger doc)

Ported from cardano-wallet c49e93a350e8294a380385258b9232df2d00ac20 to
- lib/src/Pos/Util/Swagger.hs (for the node monitoring api docs)
- wallet/src/Cardano/Wallet/API/V1/Swagger.hs (for the wallet docs)

Co-authored-by: Matthias Benkort <matthias.benkort@gmail.com>
Anviking and KtorZ committed Feb 5, 2019
1 parent 81f0ea0 commit e363b34
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -66,6 +66,7 @@

- New "common use-case" entry the API doc about importing addresses ([CO-448](https://iohk.myjetbrains.com/youtrack/issue/CO-448) [#4040](https://github.com/input-output-hk/cardano-sl/pull/4040))

- Links to specific sections of the API doc now work [#4064](https://github.com/input-output-hk/cardano-sl/pull/4064)

## Cardano SL 2.0.1

4 changes: 2 additions & 2 deletions lib/src/Pos/Util/Swagger.hs
Original file line number Diff line number Diff line change
@@ -32,8 +32,8 @@ swaggerSchemaUIServer =
<script>
// Force Strict-URL Routing for assets relative paths
(function onload() {
if (!window.location.href.endsWith("/")) {
window.location.href += "/";
if (!window.location.pathname.endsWith("/")) {
window.location.pathname += "/";
}
}());
</script>
4 changes: 2 additions & 2 deletions wallet/src/Cardano/Wallet/API/V1/Swagger.hs
Original file line number Diff line number Diff line change
@@ -1050,8 +1050,8 @@ swaggerSchemaUIServer =
<script>
// Force Strict-URL Routing for assets relative paths
(function onload() {
if (!window.location.href.endsWith("/")) {
window.location.href += "/";
if (!window.location.pathname.endsWith("/")) {
window.location.pathname += "/";
}
}());
</script>

0 comments on commit e363b34

Please sign in to comment.