Skip to content

Commit

Permalink
add additional mapping to make language toggle work
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-nick17 committed May 11, 2023
1 parent eb12a4d commit fec87a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mapper/mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func CreateGetFeedback(req *http.Request, basePage core.Page, validationErrors [

p.Language = lang
p.Type = "feedback"
p.URI = req.URL.Path
p.Metadata.Title = helper.Localise("FeedbackTitle", lang, 1)
p.Metadata.Description = ff.URL

Expand Down Expand Up @@ -195,6 +196,7 @@ func CreateGetFeedbackThanks(req *http.Request, basePage core.Page, lang, url, w

p.Language = lang
p.Type = "feedback"
p.URI = req.URL.Path
p.Metadata.Title = helper.Localise("FeedbackThanks", lang, 1)
p.PreviousURL = url

Expand Down

0 comments on commit fec87a4

Please sign in to comment.