Skip to content
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

Quarto should output websites with "pretty" URLs #2065

Open
Tracked by #6518
sellorm opened this issue Aug 23, 2022 · 1 comment
Open
Tracked by #6518

Quarto should output websites with "pretty" URLs #2065

sellorm opened this issue Aug 23, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@sellorm
Copy link

sellorm commented Aug 23, 2022

When using quarto to build websites, some static site generators, for instance mkdocs, create sites with "pretty" URLs by default. It would be great if Quarto also did this.

For instance, in a project containing the file science.md, quarto render will generate that as science.html, resulting in a URL like, https://example.com/science.html. In contrast, mkdocs build would generate it as science/index.html, meaning that, when published, it could be accessed at https://example.com/science/.

The current workaround would be to create the original file at science/index.md, in which case, both quarto and mkdocs would generate the same HTML in the same places.

This is important for sites that might be considering migrating to quarto that are not currently structured along the lines of the workaround.

@eitsupi
Copy link
Contributor

eitsupi commented Aug 23, 2022

I believe this can be worked around by simply setting an alias. (No need to rename the file)
https://quarto.org/docs/websites/website-navigation.html#redirects

---
title: science
aliases:
  - /science/
---

@dragonstyle dragonstyle added this to the v1.3 milestone Sep 14, 2022
@dragonstyle dragonstyle added the needs-discussion Issues that require a team-wide discussion before proceeding further label Sep 14, 2022
@allenmanning allenmanning removed the needs-discussion Issues that require a team-wide discussion before proceeding further label Sep 14, 2022
@cscheid cscheid added the enhancement New feature or request label Nov 15, 2022
@cscheid cscheid modified the milestones: v1.3, Future Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants