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

attachments: fix links if only one language is present #503

Closed
McShelby opened this issue Mar 14, 2023 Discussed in #501 · 1 comment
Closed

attachments: fix links if only one language is present #503

McShelby opened this issue Mar 14, 2023 Discussed in #501 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@McShelby
Copy link
Owner

Discussed in #501

Originally posted by piotrzawadz March 13, 2023
I've followed documentation:
https://mcshelby.github.io/hugo-theme-relearn/shortcodes/attachments/index.html

  1. Create folder structure with md file:
    catalog1/catalog2/db_administration.md

  2. Create folder:
    catalog1/catalog2/db_administration.files

  • add several files into it
  1. Then run hugo command to generate static files

  2. Deploy them into github

Eventually files are properly displayed on the page generated from db_administration.md (styles work perfectly), however when I click attachment I receive:
"Woops. Looks like this page doesn't exist ¯_(ツ)_/¯."

The generated link is:
https:///catalog1/catalog2/db_administration/.files/configure_db_txt

I've noticed that when it is change it manually to:
https:///catalog1/catalog2/db_administration.files/configure_db_txt

the file can be open.

Therefore, it looks that / is somewhere added between db2_administration and .files. Is it a bug or should I change something in my code?

@McShelby McShelby added the bug Something isn't working label Mar 14, 2023
@McShelby McShelby added this to the 5.12.3 milestone Mar 14, 2023
@McShelby McShelby self-assigned this Mar 14, 2023
@McShelby
Copy link
Owner Author

@piotrzawadz: This bug is fixed in version 5.12.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant