diff --git a/assets/js/lecter.js b/assets/js/lecter.js
index a29cba6..a68570d 100644
--- a/assets/js/lecter.js
+++ b/assets/js/lecter.js
@@ -85,7 +85,7 @@ $(document).ready(function() {
})
.done(function(data) {
if(data.success === true) {
- ajaxContent('/?nav=1', function(){
+ ajaxContent(prefixUrl+'/?nav=1', function(){
$('#alert-success').show().html(data.message);
});
} else {
@@ -116,7 +116,7 @@ $(document).ready(function() {
};
if(data.newPath !== '') {
- ajaxContent('/'+data.newPath+'?nav=1', callback);
+ ajaxContent(prefixUrl+'/'+data.newPath+'?nav=1', callback);
} else {
callback();
}
@@ -153,7 +153,7 @@ $(document).ready(function() {
$('#alert-success').show().html(data.message);
}
- ajaxContent('/'+data.newPath+'?nav=1', callback);
+ ajaxContent(prefixUrl+'/'+data.newPath+'?nav=1', callback);
} else {
$('#alert-error').show().html(data.message);
}
diff --git a/src/Http/routes.php b/src/Http/routes.php
index 00ffb88..03bc604 100644
--- a/src/Http/routes.php
+++ b/src/Http/routes.php
@@ -17,6 +17,6 @@
if (Config::get('lecter.private')) {
$router->delete('{any}', ['as' => 'lecter.delete-content', 'uses' => 'WikiController@deletePage'])->where('any', '.*');
$router->put('{any}', ['as' => 'lecter.update-content', 'uses' => 'WikiController@editPage'])->where('any', '.*');
- $router->post('{any}', ['as' => 'lecter.update-content', 'uses' => 'WikiController@addPage'])->where('any', '.*');
+ $router->post('{any?}', ['as' => 'lecter.add-content', 'uses' => 'WikiController@addPage'])->where('any', '.*');
}
});
diff --git a/src/LecterServiceProvider.php b/src/LecterServiceProvider.php
index 7bdb403..99ac550 100644
--- a/src/LecterServiceProvider.php
+++ b/src/LecterServiceProvider.php
@@ -35,6 +35,7 @@ public function boot()
*/
public function register()
{
+
}
protected function setupPackage()
diff --git a/views/controllers/wiki/index.blade.php b/views/controllers/wiki/index.blade.php
index 57de115..26d8eec 100644
--- a/views/controllers/wiki/index.blade.php
+++ b/views/controllers/wiki/index.blade.php
@@ -1,6 +1,9 @@
@extends('lecter::layouts.master')
@section('content')
+