You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above code would produce "{productName}" as the page title.
馃拋 Possible Solution
Since this is all happening in the route mapping, I think all that is required is to check if the childTitle contains a match for the route parameter and interpolate the value. Much like it already does for the path.
馃敠 Context
A common pattern for things like products and blog posts is to set the page title to the title of the product or post in addition to some other text.
馃捇 Examples
Newegg product listing
Post on Medium
The text was updated successfully, but these errors were encountered:
馃檵 Feature Request
A nice feature I think would be the ability to interpolate route parameters into the title.
馃 Expected Behavior
The ability to do something like this:
馃槸 Current Behavior
The above code would produce "{productName}" as the page title.
馃拋 Possible Solution
Since this is all happening in the route mapping, I think all that is required is to check if the
childTitle
contains a match for the route parameter and interpolate the value. Much like it already does for the path.馃敠 Context
A common pattern for things like products and blog posts is to set the page title to the title of the product or post in addition to some other text.
馃捇 Examples
Newegg product listing
![image](https://user-images.githubusercontent.com/32497422/186972641-de5cc42f-e838-4d45-9af9-66205ccc9f1e.png)
Post on Medium
![image](https://user-images.githubusercontent.com/32497422/186972820-f0fd3336-d66b-4654-b4bf-db77a7fdf291.png)
The text was updated successfully, but these errors were encountered: