Correct links rendering on a domain based wiki

Last modified by Ilie Andriuta on 2025/01/30 13:23

Home Wiki Tests Home Run Test

Steps to reproduce

NOTE: For this test, it's best to use a new XWiki instance.

  1. Add 2 custom domains in Information/etc/hosts/ file: one to be used for Main Wiki (e.g. domain1.com) and one for the subwiki (e.g. domain2.com)
  2. Before starting the XWiki instance, edit Informationxwiki.cfg, uncomment and set Informationxwiki.virtual.usepath=0
  3. Start and access the instance with a custom domain previously set (e.g. domain1.com)
  4. Login as Admin
  5. Create a subwiki by setting the Alias as the other domain (e.g. domain2.com)
  6. Create an user (e.g. U1) on Main Wiki
  7. Login with U1, go to Notification Settings and set Pages Notifications toggles to ON
  8. Click on a Page Notifications button and follow the entire wiki
  9. Go to subwiki, click on a Page Notifications button and follow the entire wiki as well
  10. Login as Admin
  11. Create, update and comment a page (Sub1) on subwiki
  12. Create, update and comment a page (M1) on Main Wiki
  13. Go to subwiki, login as the user U1
  14. On notifications list, observe the links pointing to the page from Main Wiki (e.g. M1) and the links to Admin's profile

Expected results

The links are displayed properly, pointing correctly to the Main Wiki, using the domain set for it:

e.g.:
- for the page: http:domain1.com/xwiki/bin/view/M1/

- for Admin's profile: http:domain1.com/xwiki/bin/view/XWiki/Admin

Automation Status

Needs Automated Test

Results

per page of Page
Jira Issue
Warning
The environment prevents the table from loading data.
 
Page

Get Connected