Closed Bug 565801 Opened 14 years ago Closed 14 years ago

[k] Internal links should check page exists

Categories

(support.mozilla.org :: Forum, task, P4)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: paulc, Assigned: paulc)

References

()

Details

Follow-up from a github discussion over bug 561524, we'd like to make the internal link hook smarter by checking if the KB page exists, and include an edit-link instead, if it doesn't.
This can slip.
Priority: -- → P4
Up for grabs if anyone else wants it.
Target Milestone: 2.1 → 2.2
Blocks: 569033
http://github.com/jsocol/kitsune/commit/dbe6e48cac03362e6c93c00e67876ec5becdc57e (and previous commit)
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Testing this:
* If the wiki page exists (e.g. "Installing Firefox"), the resulting link should take you to the KB page (e.g. /<locale>/kb/Installing+Firefox)
* If the wiki page does not exist (e.g. "Does Not Exist"), the resulting link should take you to the edit page (e.g. "/tiki-editpage.php?page=Does+Not+Exist")
(In reply to comment #4)
> * If the wiki page does not exist (e.g. "Does Not Exist"), the resulting link
> should take you to the edit page (e.g.
> "/tiki-editpage.php?page=Does+Not+Exist")

Technically, it should take you to the creation page.
I'm not seeing the creation page when altering the page name:
https://support-stage.mozilla.com/en-US/forum/1/572911?s=not+a+page&as=s

Changing the forum number brings up the 'error incorrect thread' page:
https://support-stage.mozilla.com/en-US/forum/1/572948371?s=not+a+page&as=s
Verified using page paths for valid and invalid pages inside question/answer
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.