-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into allanlasser/issue909
- Loading branch information
Showing
7 changed files
with
55 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export const DC_BASE = "https://api.www.documentcloud.org"; | ||
export const APP_URL = "https://next.www.documentcloud.org/"; | ||
export const EMBED_URL = "https://next.www.documentcloud.org/"; | ||
export const APP_URL = "https://www.documentcloud.org/"; | ||
export const EMBED_URL = "https://embed.documentcloud.org/"; | ||
export const SQUARELET_BASE = "https://accounts.muckrock.com"; | ||
export const STAFF_ONLY_S3_URL = | ||
"https://s3.console.aws.amazon.com/s3/buckets/s3.documentcloud.org?region=us-east-1&prefix=documents/$$ID$$/&showversions=false"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/routes/(app)/documents/[id]/annotations/[note_id]/+page.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { redirect } from "@sveltejs/kit"; | ||
|
||
import { EMBED_URL } from "@/config/config.js"; | ||
|
||
// redirect to embed route | ||
export function load({ url }) { | ||
const u = new URL(url); | ||
|
||
u.searchParams.set("embed", "1"); | ||
u.hostname = EMBED_URL; | ||
|
||
return redirect(302, u); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { redirect } from "@sveltejs/kit"; | ||
|
||
import { EMBED_URL } from "@/config/config.js"; | ||
|
||
// redirect to embed route | ||
export function load({ url }) { | ||
const u = new URL(url); | ||
|
||
u.searchParams.set("embed", "1"); | ||
u.hostname = EMBED_URL; | ||
|
||
return redirect(302, u); | ||
} |