File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed
app/subsystems/content/models Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 97
97
execjs
98
98
awesome_print (1.8.0 )
99
99
aws-eventstream (1.1.1 )
100
- aws-partitions (1.466 .0 )
100
+ aws-partitions (1.473 .0 )
101
101
aws-sdk-autoscaling (1.53.0 )
102
102
aws-sdk-core (~> 3 , >= 3.109.0 )
103
103
aws-sigv4 (~> 1.1 )
104
104
aws-sdk-cloudwatch (1.46.0 )
105
105
aws-sdk-core (~> 3 , >= 3.109.0 )
106
106
aws-sigv4 (~> 1.1 )
107
- aws-sdk-core (3.114.2 )
107
+ aws-sdk-core (3.115.0 )
108
108
aws-eventstream (~> 1 , >= 1.0.2 )
109
109
aws-partitions (~> 1 , >= 1.239.0 )
110
110
aws-sigv4 (~> 1.1 )
111
111
jmespath (~> 1.0 )
112
- aws-sdk-kms (1.43 .0 )
112
+ aws-sdk-kms (1.44 .0 )
113
113
aws-sdk-core (~> 3 , >= 3.112.0 )
114
114
aws-sigv4 (~> 1.1 )
115
115
aws-sdk-s3 (1.96.1 )
481
481
roar
482
482
roar-rails
483
483
uber
484
- openstax_content (0.0.2 )
484
+ openstax_content (0.2.0 )
485
485
aws-sdk-s3
486
486
faraday
487
487
nokogiri
Original file line number Diff line number Diff line change @@ -197,15 +197,7 @@ def resolve_link(link)
197
197
else
198
198
# Link to a different book
199
199
# The user might not have access to the book in Tutor, so it's safer to send them to REX
200
- object = uri . path . sub ( './' , '' )
201
- book_id , page_id = object . split ( ':' , 2 )
202
- page_uuid = page_id . split ( '@' , 2 ) . first
203
- book_slug = book . archive . slug book_id
204
- page_slug = book . archive . slug object
205
- uri . path = "books/#{ book_slug } /pages/#{ page_slug } "
206
- Addressable ::URI . join (
207
- "https://#{ Rails . application . secrets . openstax [ :content ] [ :domain ] } " , uri
208
- ) . to_s
200
+ book . archive . webview_uri_for ( uri ) . to_s
209
201
end
210
202
else
211
203
# Resource link or other unknown relative link
You can’t perform that action at this time.
0 commit comments