Skip to content

Commit

Permalink
feat(redirect): preserve query string when redirecting
Browse files Browse the repository at this point in the history
BREAKING CHANGE: change in behavior affecting project currently using this library
  • Loading branch information
dkonsoftware authored and eidellev committed Dec 18, 2021
1 parent c937554 commit 90cb2d1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Inertia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,12 @@ export class Inertia implements InertiaContract {
return Object.fromEntries(result);
}
/**
* @deprecated WARNING: This will be removed in a future release
*
* Simply replace with Adonis' `response.redirect().back()`
* Simply replace with Adonis' `response.redirect().withQs().back()`
*/
public redirectBack() {
const { response } = this.ctx;

response.status(303).redirect().back();
response.status(303).redirect().withQs().back();
}

/**
Expand Down

0 comments on commit 90cb2d1

Please sign in to comment.