Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard link redirects to login #1791

Closed
2 tasks done
Aaranaw opened this issue Feb 23, 2016 · 9 comments
Closed
2 tasks done

Dashboard link redirects to login #1791

Aaranaw opened this issue Feb 23, 2016 · 9 comments

Comments

@Aaranaw
Copy link

Aaranaw commented Feb 23, 2016

Expected Behavior

Clicking the dashboard like on the far left menu should redirect to the dashboard menu

Actual Behavior

Clicking the dashboard like on the far left menu brings the snipe-it login page
I have noticed one you have ran through the additional dashboard login it does not request further login attempts until the browser has been closed.

Before posting this issue, confirm/answer the following:

@ddreier
Copy link

ddreier commented Feb 23, 2016

I can't think of anything that would cause this other than cookies being disabled. Are your column selections on the asset lists sticking?

@Aaranaw
Copy link
Author

Aaranaw commented Feb 23, 2016

Yep they are fine.

@windclockback
Copy link

Hi - Modify app/views/backend/layouts/default.blade.php where the source is like this <img src = "{{Config::get('app.url')}} uploads to <img src = "{{Config::get(app.url')}}/../../uploads or <img src = "{{Config::get('app.url')}}/../uploads depending on your server configuration. This occurs on two lines in the source. So you have to change both lines. Cheers

@ddreier
Copy link

ddreier commented Feb 24, 2016

@windclockback just making changes to the app for yourself is counterproductive. If you have a fix for a known problem, everyone else benefits if you submit a pull request.

@jamboNum5
Copy link

Thanks windclockback, but unfortunately this hasn't resolved the problem. The fix you have mentioned is affecting the IMG tag rather than the link in the A tag.

I can see a cookie in chromes inspector, the session just seems to end after clicking dashboard link:
{{ Config::get('app.url') }}

If you I login once again, this problem doesn't seem to repeat itself, pressing the dashboard link just takes you to the dashboard.

@jamboNum5
Copy link

This fix is a bit of a hack, but resolves the issue by removing the token and replacing it with a slash. Not knowing the snipeit system extensively I'm unsure what is the best way to resolve this issue.

        <ul id="dashboard-menu">
            @if(Sentry::getUser()->hasAccess('admin'))
            <li{{ (Request::is('*/') ? ' class="active"><div class="pointer"><div class="arrow"></div><div class="arrow_border"></div></div>' : '>') }}
                <a href="/"><i class="fa fa-dashboard"></i><span>@lang('general.dashboard')</span></a>
            </li>

@windclockback
Copy link

HI - Sorry for my part answer yesterday. I found that placing the entire snipeit folder in the correct directory was step 1. so it path is /var/www/html/snipeit also in the file app/config/production/app.php edit the line to this 'url' => 'http://localhost/snipeit/public/index.php/', This then breaks the image logo path as described above but corrects the dashboard click issue.

@snipe
Copy link
Owner

snipe commented Feb 24, 2016

Public should not ever be in your URL.

@windclockback
Copy link

Ok: - I will go with fyberoptik solution. I wasn't happy with my workaround but will give this a try on my test server. Cheers

@snipe snipe closed this as completed Feb 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants