Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta
#204 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
52/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Domínio
desktop

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Sem dados de linguagem
Estrelas
20
Forks
0
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de beyondcode/polyscope-community

Todas as issues de beyondcode/polyscope-community

Issues semelhantes

Mais issues de Desktop Dev

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.