diff --git a/app/libraries/utils.php b/app/libraries/utils.php
index e636682a9843..88d87cd4650b 100755
--- a/app/libraries/utils.php
+++ b/app/libraries/utils.php
@@ -2,6 +2,10 @@
class Utils
{
+ public static function basePath() {
+ return substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/') + 1);
+ }
+
public static function fatalError($message = false, $exception = false)
{
if (!$message)
diff --git a/app/routes.php b/app/routes.php
index e5dd5c296fc1..a55f6907c064 100755
--- a/app/routes.php
+++ b/app/routes.php
@@ -164,7 +164,9 @@ HTML::macro('image_data', function($imagePath) {
HTML::macro('breadcrumbs', function() {
$str = '
';
- $crumbs = explode('/', $_SERVER['REQUEST_URI']);
+
+ // Get the breadcrumbs by exploding the current path.
+ $crumbs = explode('/', str_replace(Utils::basePath(), '', $_SERVER['REQUEST_URI']));
foreach ($crumbs as $key => $val)
{
diff --git a/app/views/accounts/details.blade.php b/app/views/accounts/details.blade.php
index 25784c742280..57312f4288b2 100755
--- a/app/views/accounts/details.blade.php
+++ b/app/views/accounts/details.blade.php
@@ -29,7 +29,7 @@
{{ Former::text('name') }}
{{ Former::text('work_email')->label('Email') }}
{{ Former::text('work_phone')->label('Phone') }}
- {{ Former::file('logo')->max(2, 'MB')->accept('image')->inlineHelp('Supported: JPEG, GIF and PNG. Recommnded size: 120px width, 80px height') }}
+ {{ Former::file('logo')->max(2, 'MB')->accept('image')->inlineHelp('Supported: JPEG, GIF and PNG. Recommended size: 120px width, 80px height') }}
@if (file_exists($account->getLogoPath()))