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
{{ message }}
This repository was archived by the owner on Jun 14, 2026. It is now read-only.
It would be nice to be able to state in the config whether the title will be using parent titles and dividers or to specify an absolute title to be used without generation.
An example could be something like this
importRouterTitlefrom'react-router-title';import{Router}from'react-router-dom';constroutes=[{title: "Welcome to Example Company! The best company around!",// Would be this exactlycomponent: Homepage,routes: [{title: "Widgets",// NOTE: Title would be "Widgets | Example Company"path: "/widgets",component: Widgets,routes: [{title: "Grand Child",// NOTE: Title would be "Grand Child | Widgets | Example Company"path: "/widgets/:id/grand-child",component: GrandChild},{title: "Need Help with widgets? | Example Company",// NOTE: Title would be "Need Help with widgets? | Example Company"path: "/widgets/help",component: WidgetHelp}]}]}];constApp=()=>(<Router><RouterTitlepageTitle="Example Company"routesConfig={routes}divider="|"/>{/* your routes */}</Router>);exportdefaultApp;
A solution could
Different property such as absoluteTitle with title excluded
Modifier such as titleConcat: 0 meaning don't concat the above N levels (would be nice for the last route example)
It would be nice to be able to state in the config whether the title will be using parent titles and dividers or to specify an absolute title to be used without generation.
An example could be something like this
A solution could
absoluteTitlewithtitleexcludedtitleConcat: 0meaning don't concat the above N levels (would be nice for the last route example)