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
By default, htmx will update the page's title if it finds a <title> tag in the response content.
Since the <PageTitle> component is used in Blazor to do the same thing from any page component, we can make the integration work seamlessly by overriding the <PageTitle> component behavior to write out a <title> element where it is being added to the component tree, allowing HX to do its magic.
That should only happen when Htmxor is processing an HX request. On normal full page loads the <PageTitle> component should behave as normal.
This can be done by Htmxor including a custom IComponentActivator that returns a different component type during HX requests.
The text was updated successfully, but these errors were encountered:
By default, htmx will update the page's title if it finds a <title> tag in the response content.
Since the
<PageTitle>
component is used in Blazor to do the same thing from any page component, we can make the integration work seamlessly by overriding the<PageTitle>
component behavior to write out a<title>
element where it is being added to the component tree, allowing HX to do its magic.That should only happen when Htmxor is processing an HX request. On normal full page loads the
<PageTitle>
component should behave as normal.This can be done by Htmxor including a custom
IComponentActivator
that returns a different component type during HX requests.The text was updated successfully, but these errors were encountered: