File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11title : SmartRAG Documentation
22description : A powerful and intelligent RAG library for .NET applications
3- baseurl : " "
3+ baseurl : " /SmartRAG "
44url : " https://byerlikaya.github.io"
55
66# SEO and Search Engine Optimization
Original file line number Diff line number Diff line change @@ -92,14 +92,14 @@ document.addEventListener('DOMContentLoaded', function() {
9292 const targetLang = this . getAttribute ( 'data-lang' ) ;
9393 const currentPath = window . location . pathname ;
9494
95- // Remove current language prefix if exists
96- let newPath = currentPath . replace ( / ^ \/ ( e n | t r | d e | r u ) / , '' ) ;
95+ // Remove baseurl and current language prefix if exists
96+ let newPath = currentPath . replace ( / ^ \/ S m a r t R A G / , '' ) . replace ( / ^ \/ ( e n | t r | d e | r u ) / , '' ) ;
9797
98- // Add new language prefix
98+ // Add new language prefix with baseurl
9999 if ( newPath === '/' || newPath === '' ) {
100- newPath = `/${ targetLang } /` ;
100+ newPath = `/SmartRAG/ ${ targetLang } /` ;
101101 } else {
102- newPath = `/${ targetLang } ${ newPath } ` ;
102+ newPath = `/SmartRAG/ ${ targetLang } ${ newPath } ` ;
103103 }
104104
105105 // Navigate to new language version
You can’t perform that action at this time.
0 commit comments