Closed joaopalmeiro closed 3 months ago
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:
Sounds reasonable, feel welcome to open a PR!
Hi! 👋
Description
When generating a new extension, if the
repository
URL has a trailing slash (e.g., https://github.com/jupyterlab/extension-template/), the URL in thebugs.url
field of thepackage.json
file will be generated with two slashes (e.g., https://github.com/jupyterlab/extension-template//issues). Same for therepository.url
field (e.g., https://github.com/jupyterlab/extension-template/.git) and theGithub Actions Status
badge in theREADME.md
file (e.g., https://github.com/jupyterlab/extension-template//workflows/Build/badge.svg)Some kind of normalization (in the
copier.yml
file or in thepackage.json
template file) would be handy from my perspective. Please let me know if I can help in any way.Reproduce
pipx run --pip-args=jinja2-time==0.2.0 copier==9.2.0 copy --trust --vcs-ref v4.3.1 https://github.com/jupyterlab/extension-template demo
command, for example).Git remote repository URL
field with a URL with a trailing slash:https://github.com/jupyterlab/extension-template/
bugs.url
andrepository.url
fields of the generatedpackage.json
file, as well as theGithub Actions Status
badge URL at the top of theREADME.md
file.Expected behavior
URL repositories without duplicate slashes, whether the repository URL has a trailing slash.
Context