From 71c2e343353097ea0c981226ba5f0e3428efd62b Mon Sep 17 00:00:00 2001 From: Andrej Shadura <andrew.shadura@collabora.co.uk> Date: Thu, 27 May 2021 14:12:36 +0200 Subject: [PATCH] Fix paths in the fix-embedded-js.patch to absolute Relative paths fail to load from non-root pages. Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk> --- debian/patches/fix-embedded-js.patch | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/debian/patches/fix-embedded-js.patch b/debian/patches/fix-embedded-js.patch index 0f063e6c02..fe5c22a6b4 100644 --- a/debian/patches/fix-embedded-js.patch +++ b/debian/patches/fix-embedded-js.patch @@ -1,3 +1,5 @@ +diff --git a/src/api/public/402.html b/src/api/public/402.html +index 6f3891b..b1accb2 100644 --- a/src/api/public/402.html +++ b/src/api/public/402.html @@ -5,7 +5,7 @@ @@ -5,10 +7,12 @@ <title>Error 402</title> - <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"> -+ <link rel="stylesheet" href="css/bootstrap.min.css"> ++ <link rel="stylesheet" href="/css/bootstrap.min.css"> <style type="text/css"> html, body { +diff --git a/src/api/public/403.html b/src/api/public/403.html +index eb732a2..17e9c41 100644 --- a/src/api/public/403.html +++ b/src/api/public/403.html @@ -5,7 +5,7 @@ @@ -16,10 +20,12 @@ <title>Error 403</title> - <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"> -+ <link rel="stylesheet" href="css/bootstrap.min.css"> ++ <link rel="stylesheet" href="/css/bootstrap.min.css"> <style type="text/css"> html, body { +diff --git a/src/api/public/404.html b/src/api/public/404.html +index ea6d8b8..d0d4c59 100644 --- a/src/api/public/404.html +++ b/src/api/public/404.html @@ -5,7 +5,7 @@ @@ -27,10 +33,12 @@ <title>Error 404</title> - <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"> -+ <link rel="stylesheet" href="css/bootstrap.min.css"> ++ <link rel="stylesheet" href="/css/bootstrap.min.css"> <style type="text/css"> html, body { +diff --git a/src/api/public/408.html b/src/api/public/408.html +index 94bd91d..9ba919d 100644 --- a/src/api/public/408.html +++ b/src/api/public/408.html @@ -5,7 +5,7 @@ @@ -38,10 +46,12 @@ <title>Error 408</title> - <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"> -+ <link rel="stylesheet" href="css/bootstrap.min.css"> ++ <link rel="stylesheet" href="/css/bootstrap.min.css"> <style type="text/css"> html, body { +diff --git a/src/api/public/500.html b/src/api/public/500.html +index 056fe80..d2ba2a0 100644 --- a/src/api/public/500.html +++ b/src/api/public/500.html @@ -5,7 +5,7 @@ @@ -49,7 +59,7 @@ <title>Error 500</title> - <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"> -+ <link rel="stylesheet" href="css/bootstrap.min.css"> ++ <link rel="stylesheet" href="/css/bootstrap.min.css"> <style type="text/css"> html, body { -- GitLab