caipin 5 rokov pred
rodič
commit
c8654ce3fb

+ 2 - 2
config/webpack.common.config.js

@@ -53,12 +53,12 @@ module.exports = {
   plugins: [
     new HtmlWebpackPlugin({
       template: 'public/sub_index.html',
-      filename: 'contact/contact.html',
+      filename: 'contact/index.html',
       chunks:['contact','framework']
     }),
     new HtmlWebpackPlugin({
       template: 'public/sub_index.html',
-      filename: 'staff/staff.html',
+      filename: 'staff/index.html',
       chunks:['staff','framework']
     }),
   ]

+ 6 - 1
config/webpack.prod.config.js

@@ -85,7 +85,12 @@ module.exports = merge(common, {
     open: true,
     port: 9090,
     compress: true,
-    hot: true
+    hot: true,
+    historyApiFallback: {
+      rewrites: [
+        { from: /^\/company/, to: '/' },
+      ]
+    }
   },
   plugins: [
     new HtmlWebpackPlugin({

+ 2 - 2
public/index.html

@@ -1989,7 +1989,7 @@
               <div class="modal-body">
                   <ul class="app-list w-auto h-auto p-0 text-left">
                     <li>
-                      <a href="/index.html" class="app-list-item text-white">
+                      <a href="/" class="app-list-item text-white">
                         <div class='icon-stack'>
                           <i class="base base-11 icon-stack-3x opacity-100 color-primary-700"></i> <i class="base base-7 icon-stack-2x opacity-100 color-primary-500"></i> <i class="fas fa-chess icon-stack-1x opacity-100 color-white"></i>
                         </div>
@@ -1999,7 +1999,7 @@
                       </a>
                     </li>
                     <li>
-                      <a href="/contact/contact.html" class="app-list-item text-white">
+                      <a href="/contact" class="app-list-item text-white">
                         <div class='icon-stack'>
                           <i class="base base-4 icon-stack-3x opacity-100 color-info-700"></i> <i class="base base-12 icon-stack-2x opacity-100 color-info-500"></i> <i class="fas fa-address-book icon-stack-1x opacity-100 color-white"></i>
                         </div>