Last modified: 2012-02-22 03:45:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28564, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26564 - Path in category box is absolute instead of relative
Path in category box is absolute instead of relative
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticDrilldown (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-04 14:21 UTC by Nicole.Koenderink
Modified: 2012-02-22 03:45 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nicole.Koenderink 2011-01-04 14:21:41 UTC
Dear Yaron,

Thanks for the very useful drilldown extension for semantic mediawiki's. 
I have found a certain kind of behaviour that is in my opinion a bug. 

Description:
I have a wiki installed behind the firewall of the university. It has an address like: http://local-ip/MyWiki.
We use a reverse proxy to allow external users to access our wiki using an address like http://external-address/MyWiki.

When I go to the 
http://external-address/MyWiki/Special:BrowseData/MyCategory1 the drilldown extension works perfectly.
If I now choose MyCategory2 from the category browser, the page address changes to http://local-ip/MyWiki/Special:BrowseData/MyCategory2 instead of 
http://external-address/MyWiki/Special:BrowseData/MyCategory2.

Since the external users cannot access the local-ip directly, they cannot open the wikipage.

For all other linked pages in the wiki, the wiki opens the page using the external-address. Only the drilldown extension gives these problems.

I hope this explanation is clear and I hope that a simple solution exists. 

Thanks for your time.
Nicole
Comment 1 Yaron Koren 2012-02-17 03:23:47 UTC
Hi Nicole,

Sorry about the delay. I think I just fixed this problem in SVN - you can either get the code via SVN, or just make the fix directly in your code - it's a tiny fix. See here:

r1=111307&r2=111722">http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SemanticDrilldown/specials/SD_BrowseData.php?r1=111307&r2=111722

Please let me know if that worked for you.
Comment 2 Yaron Koren 2012-02-17 03:26:35 UTC
Well, it looks like that URL got messed up. Here's the change - in the file /specials/SD_BrowseData.php, change line 196 from:

$url = $bd->getFullURL() . '/' . $category;

to

$url = $bd->getLocalURL() . '/' . $category;
Comment 3 Yaron Koren 2012-02-22 03:45:58 UTC
I'm marking this as fixed - feel free to re-open if there's still a problem.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links