File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export default function DocsSinglePage({ data, pageContext }) {
22
22
//const pagePathNoSlash = pagePath.endsWith('/') ? pagePath.slice(0, -1) : pagePath;
23
23
const relativeFilePath = data . markdownRemark . parent . relativePath ;
24
24
const location = useLocation ( ) ; // Get the current location
25
+ console . log ( 'location.pathname: ' , location . pathname ) ;
25
26
26
27
function titleize ( slug ) {
27
28
let words = slug . toLowerCase ( ) . replace ( / - / g, ' ' ) ;
@@ -105,7 +106,7 @@ export default function DocsSinglePage({ data, pageContext }) {
105
106
< h1 > { title } </ h1 >
106
107
</ header >
107
108
< main className = "markdown-body" >
108
- { location . pathname !== '/ polkadot-sdk' && (
109
+ { ! location . pathname . includes ( ' polkadot-sdk') && (
109
110
< div className = "deprecation" >
110
111
< strong > ⚠️ Update Notice:</ strong >
111
112
< p >
You can’t perform that action at this time.
0 commit comments