mirror of
https://github.com/opensolutions/ViMbAdmin.git
synced 2026-04-26 16:55:59 +03:00
[GH-ISSUE #51] [BUG?] wrong URLS to links are provided after logging in. #45
Labels
No labels
bug
feature
feature
improvement
improvement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ViMbAdmin-opensolutions#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @janusqa on GitHub (Sep 21, 2013).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/51
Hi,
I am logging into vimbadmin via a url that looks like this:
mydomain.com:port/admin
after logging in the urls are like this
mydomain.com/admin.
How can I get it to show/use the correct url:port I originally entered. It's lopping off the port part.
Thanks. :)
@janusqa commented on GitHub (Sep 25, 2013):
Ok I tracked down my problem to library/ViMbAdmin/Controller/Action.php
in the createView function I see it is using $_SERVER['SERVER_NAME'] instead of $_SERVER['HTTP_HOST']
So I change createView to use the HTTP_HOST server variable and now the links reflect the actual url that I am accessing vimbadmin from
The adjusted createView function in Action.php:
@barryo commented on GitHub (Feb 15, 2014):
This should be working fine in V3.