Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

hotfix: allowing leading slash when call r.HTML(template_name) #2178

Merged
merged 4 commits into from
Nov 27, 2021

Conversation

sio4
Copy link
Member

@sio4 sio4 commented Nov 27, 2021

Previously, we allowed a leading slash in the template name when calling r.HTML("resources/index.plush.html") which is actually not required. (as I remember it was different by versions) Also, we generated actions with or without leading slashes before. (also different by buffalo versions.)

This hotfix makes buffalo keep the behavior so the user can migrate their existing code with a small modification as possible.

fixes gobuffalo/cli#55

@sio4 sio4 requested a review from a team as a code owner November 27, 2021 06:27
@sio4 sio4 changed the title allowing leading slash when call r.HTML(template_name) hotfix: allowing leading slash when call r.HTML(template_name) Nov 27, 2021
@paganotoni paganotoni changed the base branch from main to development November 27, 2021 14:28
@paganotoni paganotoni merged commit 691ddff into gobuffalo:development Nov 27, 2021
@sio4 sio4 mentioned this pull request Nov 29, 2021
14 tasks
@sio4 sio4 deleted the hotfix-template-name-slash branch May 14, 2022 16:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New application with buffalo 0.18: could not find templates errors
3 participants