• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • URL Might Double Domain If Filename Empty

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: URL Might Double Domain If Filename Empty

    • Issue Tools
      • View Changes
    1. issueid=4147 January 16, 2015 11:30 PM
      pegasus pegasus is offline
      VaultWiki Team
      URL Might Double Domain If Filename Empty

      So with the following configuration, we might have a doubled domain bit in the URLs for non-top-level areas and regular pages:
      • URL Format: /wiki-filename/Article
      • Wiki Filename: (empty)


      Fixed in the next release. This is a rare configuration, so the upgrade script will not rebuild URLs automatically.

      In vault/core/model/url/vw.php, find:
      Code:
      							$parent_path = $parent['url'];
      							$basebits = explode('/', $parent_path);
      							array_pop($basebits);
      							$parent_bit = array_pop($basebits);
      
      							if ($parent_bit)
      Replace with:
      Code:
      							$parent_path = $parent['url'];
      							$prot_pos = strpos($parent_path, '://');
      
      							if ($prot_pos)
      							{
      								$parent_path = substr($parent_path, $prot_pos + 3);
      							}
      
      							$basebits = explode('/', $parent_path);
      							array_shift($basebits);
      							array_pop($basebits);
      							$parent_bit = '';
      
      							if ($basebits)
      							{
      								$parent_bit = array_pop($basebits);
      							}
      
      							if ($parent_bit)
      After upgrading or applying this patch, affected installations should rebuilds URLs manually in Admin Panel > Maintenance > Counters > Rebuild URLs.
    Issue Details
    Issue Number 4147
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category URLs / Routing
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.0.0
    Fixed Version 4.0.1
    Milestone (none)
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 4:32 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.