Skip to content

igsl-group/ConfluenceURLTransform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Confluence URL Path

This tool is used to fix URLs before using Confluence Cloud Migration Assistant (CCMA).

CCMA converts URLs inserted using Search/Recently Viewed/Files. Those links are relative links pointing to Confluence content. However CCMA does not convert URLs inserted using Web Link or Advanced. Those links are absolute links.

Configuration

Configuration is stored in Config.json. See com.igsl.config.Config for explanation of each property.

How to Run

  1. TODO

URL Conversion Logic

  1. Query Confluence database to retrieve latest version of all pages.
  2. For each page:
    1. Extract URLs (href="...") from content of each page.
    2. For each URL:
      1. For each handler configured, URL is checked for acceptance:
        1. Scheme (use default scheme if there is none)
        2. Domain
        3. Path or query parameter
      2. If URL is accepted by an handler, no other handlers will be invoked.
      3. Handler calculates a new URL.
      4. If performUpdate is true, new content body is saved to database.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages