View Issue Details

IDProjectCategoryView StatusLast Update
0003339Composrcorepublic2017-10-16 12:56
ReporterChris GrahamAssigned To 
SeverityFeature-request 
Status non-assignedResolutionopen 
Product Version 
Fixed in Version 
Summary0003339: Support automatic correct linking for renamed modules
DescriptionLet's imagine site:news is renamed to article:news.

Right now in the code build_url(array('page' => 'news'), get_module_zone('news')) would end up linking to article:news, because it sees the redirect.

However, let's imagine site:news is renamed to article:news.

Right now in the code build_url(array('page' => 'news'), get_module_zone('news')) would end up linking to site:news. This is because get_module_zone knows the redirect is to a different page name so bails on going to the redirection zone, preferring the canonical zone. That's a good thing because it would be wrong for get_module_zone to assume we are dynamically setting the correct redirected page name (we're not).

However ideally what would then happen is build_url itself would itself then detect site:news is now article:news and build out the link correctly.
TagsNo tags attached.
Time estimation (hours)1.5
Sponsorship open

Activities

Chris Graham

2017-09-28 13:24

administrator   ~0005199

Also tut_subcom will need editing to reflect that this now works.

Chris Graham

2017-10-16 12:56

administrator   ~0005205

Also there is a complexity when running blocks via AJAX, as get_page_name() cannot be relied on to know where the block originally was located.

Issue History

Date Modified Username Field Change
2017-09-28 02:24 Chris Graham New Issue
2017-09-28 02:26 Chris Graham Description Updated View Revisions
2017-09-28 13:24 Chris Graham Note Added: 0005199
2017-10-16 12:56 Chris Graham Note Added: 0005205