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

Use the configured book src directory for the edit url template path #1554

Merged
merged 1 commit into from
Jun 2, 2021

Conversation

joshrotenberg
Copy link
Contributor

The "Suggest an edit" URL used src as the top level path to the file to edit regardless of whether the book.toml src config was set resulting in an incorrect link to the file. This change uses the actual configured src to build the path instead.

Fixes #1543.

use book_config.src for edit path

use book_config.src for edit path

fmt

concat the path, this is a url
Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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

Successfully merging this pull request may close these issues.

Edit URL leads to 404 if you've specified a custom src directory
2 participants