File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
pages/details/common/get-this-title-files/give-before-pdf Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import type {WindowWithSettings} from './window-settings';
22
33const EXTERNAL = / ^ ( [ a - z ] + : ) / ;
44const ABSOLUTE_OPENSTAX = new RegExp (
5- `(?:https?://openstax.org|${ window . location . origin } )(?!/(?:books|accounts|oxauth|blog-feed|documents)/)`
5+ `(?:https?://openstax.org|${ window . location . origin } )(?!/(?:(?:.*/)? books|accounts|oxauth|blog-feed|documents)/)`
66) ;
77const MAILTO = / ^ m a i l t o : ( .+ ) / ;
88
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ export default function ContentWarning({
3636 { ...( track ? { 'data-track' : track } : { } ) }
3737 onClick = { closeAfterDelay }
3838 className = "btn go-to"
39+ data-local = "true"
3940 >
4041 Go to your { variant === 'View online' ? 'book' : 'file' }
4142 </ a >
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ export default function GiveBeforeOther({
6464 className = 'btn go-to'
6565 { ...( track ? { 'data-track' : track } : { } ) }
6666 data-variant = { lookupVariant ( variant ) }
67+ data-local = "true"
6768 >
6869 Go to your { lookupVariant ( variant ) }
6970 </ a >
You can’t perform that action at this time.
0 commit comments