Skip to content

Get-Help $commandName -Online redirects to version 5.1 help #6187

@bergmeister

Description

@bergmeister

Get-Help $commandName -Online links redirect to links displaying the help of PowerShell 5.1

Steps to reproduce

Get-Help Get-ChildItem -Online
Get-Help New-Item -Online

This affects possibly most cmdlets.

Expected behavior

Redirects to e.g.
https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Management/Get-ChildItem?view=powershell-6
https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Management/New-Item?view=powershell-6

Actual behavior

Redirects to
https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Management/Get-ChildItem?view=powershell-5.1
https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Management/New-Item?view=powershell-5.1

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.1.0-preview.582
PSEdition                      Core
GitCommitId                    v6.1.0-preview.582
OS                             Microsoft Windows 10.0.16299
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions