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

Incorrect page_path variable in on_page_content function #7

Open
Mulekotd opened this issue Sep 25, 2024 · 0 comments
Open

Incorrect page_path variable in on_page_content function #7

Mulekotd opened this issue Sep 25, 2024 · 0 comments

Comments

@Mulekotd
Copy link

I believe I've encountered a bug with the page_path variable inside the on_page_content function. The page_path is not being returned with the appropriate directory separators (/). Instead of generating a path like path/subpath/file.md, it returns pathsubpathfile.md—all concatenated without the separators.

on_page_content_code_error
edit_button_bug

Solution:

To address this issue, I implemented a simple fix by manually concatenating the page_base_path and basename with the appropriate directory separator (/). While this is a straightforward solution, it resolved the issue and restored the correct functionality for operations dependent on the file path.

on_page_content_code_my_solution
bug_fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant