Skip to content

Commit

Permalink
Merge pull request #431 from Badgerati/Issue-430
Browse files Browse the repository at this point in the history
Temp fix for showing the back button
  • Loading branch information
Badgerati authored Feb 28, 2023
2 parents 11f9a39 + 2ded7bf commit 07c1ea9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* #392: Fixes `New-PodeWebTextbox` with `-NoForm` to we can create wider textboxes (thanks @ili101!)
* #413: Fixes `Update-PodeWebTextbox` to work with Date types
* #423: Fixes line charts back to being curved lines and filled areas
* #430: Temporary fix for showing the back button pages when there is no query string
### Packaging
* #378: Bumps highlightjs to 11.7.0
Expand Down
3 changes: 3 additions & 0 deletions src/Public/Pages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,9 @@ function Add-PodeWebPage

if (!$global:PageData.NoBackArrow) {
$global:PageData.ShowBack = (($null -ne $WebEvent.Query) -and ($WebEvent.Query.Count -gt 0))
if ($global:PageData.ShowBack -and ($WebEvent.Query.Count -eq 1) -and ($WebEvent.Query.ContainsKey(''))) {
$global:PageData.ShowBack = $false
}
}
else {
$global:PageData.ShowBack = $false
Expand Down

0 comments on commit 07c1ea9

Please sign in to comment.