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

Enables setting base-url to / for relative URLs in serve mode #1853

Merged
merged 1 commit into from
May 10, 2022

Conversation

colindean
Copy link
Contributor

@colindean colindean commented May 7, 2022

Having to change the base URL to whatever ngrok URL was provisioned for
me was frustrating. This patch enables setting it to /, which will
then make the get_url() function simply return /.

Fixes #1568 for at least zola serve in my local testing.

IMPORTANT: Please do not create a Pull Request adding a new feature without discussing it first.

The place to discuss new features is the forum: https://zola.discourse.group/
If you want to add a new feature, please open a thread there first in the feature requests section.

Sanity check:

  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Code changes

(Delete or ignore this section for documentation changes)

  • Are you doing the PR on the next branch?

If the change is a new feature or adding to/changing an existing one:

  • Have you created/updated the relevant documentation page(s)?

@colindean colindean marked this pull request as draft May 7, 2022 21:50
Having to change the base URL to whatever ngrok URL was provisioned for
me was frustrating. This patch enables setting it to `/`, which will
then make the `get_url()` function simply return `/`.
@colindean colindean changed the base branch from master to next May 7, 2022 21:53
@colindean colindean marked this pull request as ready for review May 7, 2022 21:53
@Keats Keats merged commit f7f5545 into getzola:next May 10, 2022
@colindean colindean deleted the slash_base_url branch May 13, 2022 00:49
@colindean
Copy link
Contributor Author

Thank you!

1 similar comment
@Keats
Copy link
Collaborator

Keats commented May 13, 2022

Thank you!

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.

Relative Urls support
2 participants