Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#204 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
desktop

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Nessun dato sulla lingua
Stelle
20
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di beyondcode/polyscope-community

Tutte le issue di beyondcode/polyscope-community

Issue simili

Altre issue su Desktop Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.