File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -138,10 +138,10 @@ const Banner = () => {
138138 </ p >
139139 { banner . link && (
140140 banner . link . startsWith ( 'http' ) ? (
141- /*
141+ /*
142142 Use native <a> tag for external absolute URLs to bypass React Router.
143- This allows the browser to perform a normal page navigation instead of
144- React Router attempting to resolve it internally which causes a 404.
143+ This allows the browser to perform a normal page navigation instead of
144+ React Router attempting to resolve it internally which causes a 404.
145145 */
146146 < a
147147 href = { banner . link }
Original file line number Diff line number Diff line change @@ -211,10 +211,10 @@ const BrutalistSidebar = ({
211211 { items . map ( ( item , idx ) => {
212212 const Icon = ICON_MAP [ item . icon ] || ArrowRightIcon ;
213213 if ( item . external === 'true' || item . url || ( item . to && item . to . startsWith ( 'http' ) ) ) {
214- /*
214+ /*
215215 Use native <a> tag for external absolute URLs to bypass React Router.
216- This allows the browser to perform a normal page navigation instead of
217- React Router attempting to resolve it internally which causes a 404.
216+ This allows the browser to perform a normal page navigation instead of
217+ React Router attempting to resolve it internally which causes a 404.
218218 */
219219 return (
220220 < a
Original file line number Diff line number Diff line change @@ -215,10 +215,10 @@ const LuxeSidebar = ({
215215 { items . map ( ( item , idx ) => {
216216 const Icon = ICON_MAP [ item . icon ] || ArrowRightIcon ;
217217 if ( item . external === 'true' || item . url || ( item . to && item . to . startsWith ( 'http' ) ) ) {
218- /*
218+ /*
219219 Use native <a> tag for external absolute URLs to bypass React Router.
220- This allows the browser to perform a normal page navigation instead of
221- React Router attempting to resolve it internally which causes a 404.
220+ This allows the browser to perform a normal page navigation instead of
221+ React Router attempting to resolve it internally which causes a 404.
222222 */
223223 return (
224224 < a
You can’t perform that action at this time.
0 commit comments