Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Bug]: Preview opens the repository folder's URL instead of the workspace's with {{folder}}

未关闭
#204 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
领域
desktop

调研方向

Start by tracing how the Preview pane loads its URL for a newly created workspace and how it expands {{folder}} from polyscope.json; compare that value with the repository root folder and workspace name in the reproduction. The issue does not name source files or tests, so locate the preview configuration and URL expansion entry points first. Done means Preview opens https://turbo-yak.test for this setup, and a regression check covers the case.

由索引模型根据 Issue 内容生成。

描述

Platform

macOS

Operating system version

macOS 27.0.1

System architecture

ARM64 (M1, M2, etc)

PolyScope Version

0.29.0

Bug description

In a workspace named turbo-yak, clicking Preview opens https://people.test. I expected https://turbo-yak.test. people is the name of the repository's root folder. I never typed or visited people.test in the preview pane.

polyscope.json in the repo root:

{ "preview": { "url": "https://{{folder}}.test" } }

The setup script runs herd link and herd secure, so https://turbo-yak.test serves the workspace. It returns HTTP 200 in an external browser. There is no polyscope.local.json, and I could not find a preview field in the repository settings.

Expected: Preview opens https://turbo-yak.test, as the help text says {{folder}} is the worktree folder name.

Question: does the Preview pane remember a URL for the repository, and where does it read it from for a new workspace?

Steps to reproduce
  1. Put { "preview": { "url": "https://{{folder}}.test" } } in polyscope.json at the repo root (repo folder named people).
  2. Use a setup script that runs herd link and herd secure in the workspace.
  3. Create a new workspace (it was named turbo-yak).
  4. Click Preview. It opens https://people.test.
Relevant log output

None.

主要语言
没有语言数据
星标
20
派生
0
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

beyondcode/polyscope-community 的其他 Issue

查看 beyondcode/polyscope-community 的全部 Issue

相似的 Issue

更多 Desktop Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。