FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update hyperlink for DefaultPromptFunctionText by yecril71pl · Pull Request #13176 · PowerShell/PowerShell · GitHub

Update hyperlink for DefaultPromptFunctionText - #13176

Merged
Aditya Patwardhan (adityapatwardhan) merged 5 commits into
PowerShell:masterfrom
yecril71pl:patch-3
Nov 14, 2020
Merged

Update hyperlink for DefaultPromptFunctionText#13176
Aditya Patwardhan (adityapatwardhan) merged 5 commits into
PowerShell:masterfrom
yecril71pl:patch-3

Conversation

Copy link
Copy Markdown
Contributor

PR Summary

The help hyperlink for DefaultPromptFunctionText, and hence Prompt, was invalid. Fix #7795.

PR Context

Invalid hyperlinks distract and annoy users and decrease productivity.

PR Checklist

Copy link
Copy Markdown

The same URL is here as well:

Prompt,https://go.microsoft.com/fwlink/?LinkID=225750

Copy link
Copy Markdown
Contributor Author

The same URL is here as well:

Prompt,https://go.microsoft.com/fwlink/?LinkID=225750

This is a test data source. The test HelpSystem.OnlineHelp.Tests.ps1 is too weak—it does not verify that the help content makes sense.

Ilya (iSazonov) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Jul 16, 2020

Copy link
Copy Markdown
Collaborator

We should not remove this URL we need to fix it.

Copy link
Copy Markdown
Contributor Author

We should not remove this URL we need to fix it.

There is no content for HELP PROMPT.

Sean Wheeler (sdwheeler) commented Jul 16, 2020
edited
Loading

Copy link
Copy Markdown
Collaborator

Aditya Patwardhan (@adityapatwardhan) Do we want to fix the help for prompt or remove the link?

If we want to fix it, we need to create a new FWLink. The target for that link should point to about_prompts or we need to create a new Microsoft.PowerShell.Core/prompt.md file.

Copy link
Copy Markdown

If we want to fix it, we need to create a new FWLink.

Would that make the existing URL redirect correctly (and thus fix PowerShell 6.2.7 as well), or would it require changing the LinkID=225750 number?

Copy link
Copy Markdown
Member

Sean Wheeler (@sdwheeler) I think we should fix the help content. Could you just update this link to point to the new content?

Copy link
Copy Markdown
Collaborator

The existing FWLink LinkID=225750 does not exist anymore and cannot be recreated. We have to create a new one.

Aditya Patwardhan (@adityapatwardhan) Should we document the prompt function (new content) or point to about_Prompts? about_Prompts is more useful information and the plain function syntax that would be returned.

ghost added the Review - Needed The PR is being reviewed label Jul 24, 2020

Copy link
Copy Markdown

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

ghost added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Jul 24, 2020

Copy link
Copy Markdown
Member

Christopher Yeleighton (@yecril71pl) Please have a look at suggested changes.

ghost removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Jul 24, 2020
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
The help should be redirected to about_Prompts but it does not work for some reason, so I copied the most important information from there and added a link to full documentation.
Christopher Yeleighton (yecril71pl) changed the title Remove hyperlink for DefaultPromptFunctionText Update hyperlink for DefaultPromptFunctionText Jul 26, 2020

Copy link
Copy Markdown
Member

Sean Wheeler (@sdwheeler) Can you please review the comment help content.

ghost added the Review - Needed The PR is being reviewed label Aug 7, 2020

Copy link
Copy Markdown

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

Copy link
Copy Markdown
Member

ghost removed the Review - Needed The PR is being reviewed label Aug 11, 2020
Comment on lines 4780 to +4783
# .Link
# https://go.microsoft.com/fwlink/?LinkID=225750
# https://go.microsoft.com/fwlink/?LinkId=2136843
# .Link
# about_Prompts

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Don't these help nodes require it to be all uppercase? Or am I misremembering. All the help docs I can recall show them only with uppercase names (i.e., .LINK)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This is the current declaration and it works.

Copy link
Copy Markdown

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

Aditya Patwardhan (adityapatwardhan) added CL-Engine Indicates that a PR should be marked as an engine change in the Change Log and removed CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log labels Nov 14, 2020
ghost removed the Review - Needed The PR is being reviewed label Nov 14, 2020
Aditya Patwardhan (adityapatwardhan) merged commit f13d27b into PowerShell:master Nov 14, 2020

Copy link
Copy Markdown
Member

Christopher Yeleighton (@yecril71pl) Thank you for your contribution!

James Truher (JamesWTruher) added a commit to JamesWTruher/PowerShell-1 that referenced this pull request Nov 16, 2020
Rob Holt (rjmholt) added CL-NotInBuild Indicates that a PR is reverted and not part of the build. and removed CL-Engine Indicates that a PR should be marked as an engine change in the Change Log labels Nov 17, 2020
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-NotInBuild Indicates that a PR is reverted and not part of the build.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get-Help Clear-Host -Online gives broken link

8 participants


Back | FazBrowse Home | New Git URL