From 2572ca203fd9414ccf60b0f60b674f40657f2bc6 Mon Sep 17 00:00:00 2001
From: Irene Edria <ireneedriadr@gmail.com>
Date: Thu, 16 Nov 2017 20:38:46 +0700
Subject: [PATCH] WebApp: Remove leading slashes

---
 .../src/main/webapp/WEB-INF/edit_preferences.jsp       |  4 ++--
 .../WebApp/src/main/webapp/WEB-INF/edit_profile.jsp    |  2 +-
 .../WebApp/src/main/webapp/WEB-INF/find_driver.jsp     |  2 +-
 .../WebApp/src/main/webapp/WEB-INF/history.jsp         |  4 ++--
 .../WebApp/src/main/webapp/WEB-INF/order.jsp           |  2 +-
 .../WebApp/src/main/webapp/WEB-INF/signup.jsp          |  2 +-
 .../WebApp/src/main/webapp/component/footer.html       |  2 +-
 .../WebApp/src/main/webapp/component/nav.html          | 10 +++++-----
 8 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/edit_preferences.jsp b/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/edit_preferences.jsp
index e5eead9..36187dd 100644
--- a/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/edit_preferences.jsp
+++ b/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/edit_preferences.jsp
@@ -33,7 +33,7 @@
                 <tr>
                     <td><%= i %></td>
                     <td>
-                        <form action="/edit_preferred_location" method="post" id="form-update-${item.getPosition()}">
+                        <form action="edit_preferred_location" method="post" id="form-update-${item.getPosition()}">
                             <input type="hidden" value="${item.getPosition()}" name="position">
                             <input value="${item.getLocation()}"  class="form-input" id="edit-input-${item.getPosition()}" disabled name="location">
                         </form>
@@ -41,7 +41,7 @@
                     <td>
                             <span><button class="edit-button inline-block" type="button" onclick=toggleEdit(${item.getPosition()})
                                                 id="edit-button-${item.getPosition()}"></button></span>
-                        <form action="/delete_location" class="display-inline-block" onsubmit="return confirm('Are You Sure')" method="post">
+                        <form action="delete_location" class="display-inline-block" onsubmit="return confirm('Are You Sure')" method="post">
                             <input type="hidden" value="${item.getPosition()}" name="position">
                             <span><button class="delete-button inline-block" type="submit"></button></span>
                         </form>
diff --git a/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/edit_profile.jsp b/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/edit_profile.jsp
index 609962e..4fecc39 100644
--- a/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/edit_profile.jsp
+++ b/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/edit_profile.jsp
@@ -70,7 +70,7 @@
                 </tr>
                 <tr>
                     <td>
-                        <a href="/profile">
+                        <a href="profile">
                         <button id="back-button" type="button" class="submit-button">Back</button>
                         </a>
                     </td>
diff --git a/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/find_driver.jsp b/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/find_driver.jsp
index 3efce5b..aefb1bb 100644
--- a/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/find_driver.jsp
+++ b/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/find_driver.jsp
@@ -28,7 +28,7 @@
             </li>
             </ul>
         </div>
-        <form action="/complete_order" method="get">
+        <form action="complete_order" method="get">
             <input type="hidden" name="pickUp" value="${pickup}">
             <input type="hidden" name="destination" value="${destination}">
             <div class="order-panel">
diff --git a/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/history.jsp b/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/history.jsp
index f50876a..a3b0bb0 100644
--- a/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/history.jsp
+++ b/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/history.jsp
@@ -19,14 +19,14 @@
                 </div>
             </div>
             <div class="row inline-flex history-menu">
-                <a href="/history">
+                <a href="history">
 
                 <div class="active">
                     My Previous Order
 
                 </div>
                 </a>
-                <a href="/driver_history">
+                <a href="driver_history">
                 <div>
                     Driver History
                 </div>
diff --git a/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/order.jsp b/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/order.jsp
index d5a1f4f..ac7817f 100644
--- a/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/order.jsp
+++ b/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/order.jsp
@@ -26,7 +26,7 @@
             </ul>
         </div>
         <div class="order-form">
-            <form action="/find_driver" onsubmit="return validateForm(this)" method="get">
+            <form action="find_driver" onsubmit="return validateForm(this)" method="get">
                 <table>
                     <tr>
                         <td>Picking Point</td>
diff --git a/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/signup.jsp b/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/signup.jsp
index 7ab3b53..f0a4583 100644
--- a/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/signup.jsp
+++ b/TugasBesar2_2017/WebApp/src/main/webapp/WEB-INF/signup.jsp
@@ -15,7 +15,7 @@
                out.println("<span class='color-red'>SignUp Gagal</span>");
             }
             %>
-            <form action="/register" method="post" onsubmit="return validateForm(this)">
+            <form action="register" method="post" onsubmit="return validateForm(this)">
                 <div class="form-box-body-wrapper">
                     <table border="0" class="form-box-table">
                         <tr>
diff --git a/TugasBesar2_2017/WebApp/src/main/webapp/component/footer.html b/TugasBesar2_2017/WebApp/src/main/webapp/component/footer.html
index 724ae4e..307b1ee 100644
--- a/TugasBesar2_2017/WebApp/src/main/webapp/component/footer.html
+++ b/TugasBesar2_2017/WebApp/src/main/webapp/component/footer.html
@@ -1,3 +1,3 @@
-<script src="../js/app.js"></script>
+<script src="js/app.js"></script>
 </body>
 </html>
\ No newline at end of file
diff --git a/TugasBesar2_2017/WebApp/src/main/webapp/component/nav.html b/TugasBesar2_2017/WebApp/src/main/webapp/component/nav.html
index be980a8..5bcc9d6 100644
--- a/TugasBesar2_2017/WebApp/src/main/webapp/component/nav.html
+++ b/TugasBesar2_2017/WebApp/src/main/webapp/component/nav.html
@@ -1,29 +1,29 @@
 <nav class="navbar">
     <div class="row navbar-top">
         <div class="inline-block float-left txt-left">
-            <img src="../img/logo.png" class="margin-auto height-100">
+            <img src="img/logo.png" class="margin-auto height-100">
         </div>
         <div class="inline-block float-right txt-right">
             Hi,${user}!
             <br>
-            <a href="/logout">Logout</a>
+            <a href="logout">Logout</a>
         </div>
     </div>
 
     <br>
     <div class="inline-flex" id="navbar-menu">
 
-        <a href="/order">
+        <a href="order">
             <div id="nav-order">
                 <span>ORDER</span>
             </div>
         </a>
-    <a href="/history">
+    <a href="history">
         <div id="nav-history">
             <span>HISTORY</span>
         </div>
     </a>
-    <a href="/profile">
+    <a href="profile">
         <div id="nav-profile">
             <span> MY PROFILE</span>
         </div>
-- 
GitLab