-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(docs-page): TFE version stripping #639
Conversation
π¦ Changeset detectedLatest commit: b3e105a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
}) | ||
|
||
it('should strip a TFE version string', () => { | ||
const [version, params] = stripVersionFromPathParams([ | ||
'enterprise', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this because it was an inaccurate input.
Given
/enterprise/[[...page]].tsx
Then
enterprise
will never be first in thectx.params.page
list, unless the path is/enterprise/enterprise
π¦ Canary Packages PublishedLatest commit: b3e105a Published 1 packages@hashicorp/react-docs-page@17.1.2-canary-20220706153646
|
Testing via hashicorp/terraform-website#2370 |
Going to merge this! |
ποΈ Asana Task
π Preview Link
Description
This fixes a case where a TFE version that is expected to be in the URL was being accidentally removed.
PR Checklist π
Items in this checklist may not may not apply to your PR, but please consider each item carefully.