Ore icon indicating copy to clipboard operation
Ore copied to clipboard

Inconsistent links between Home page and pages/Home

Open dualspiral opened this issue 8 years ago • 5 comments
trafficstars

(Apologies for a badly worded title/report, I'm struggling to think how to summarise it. Hopefully you'll get the gist of what I'm saying!)

When writing the home page for a plugin, you may want to create a link to various sub pages using Markdown - say to link from <project>/pages/Home to <project>/pages/FAQs, the seasoned markdown writer would write [FAQs](FAQs). However, as the Home page also exists at the project root, when viewed from that page, the link would be broken when viewed there.

To reproduce this:

  • Create an Ore project
  • Create a new page, call it "FAQs"
  • On the home page, enter the markdown [FAQs](FAQs) and save it.
  • Click on "Home" under pages on the right hand side.
  • Click on the FAQs link in the main text body, it correctly links to the FAQs page
  • Click on Docs at the top to go to the root project page (without pages/Home in the URL) - you should see the home page
  • Click on the FAQs link, you'll get a 404

While the workaround is to just put the full URL in, it would be nice if there could be some special handling so that relative links can be resolved one way or another and not break one of the pages.

dualspiral avatar May 31 '17 00:05 dualspiral

Perhaps it could even support the MediaWiki link format that GitHub Wiki supports (https://help.github.com/articles/adding-links-to-wikis/) i.e. [[Link Text|WikiLink]]

simon816 avatar Jun 15 '17 18:06 simon816

My suggestion is to redirect <project> to <project>/pages/Home

But I don't know if making URL's to the pages is the best thing to do because the home page gets mirrored to the forum. Any other idea's on how to fix it?

Ewoutvans avatar Jan 13 '18 17:01 Ewoutvans

Is this still an issue?

phase avatar Mar 12 '18 20:03 phase

Looks fixed to me

Faithcaio avatar Apr 18 '18 13:04 Faithcaio

It's not fixed. I just tested it on the Nucleus page (which uses absolute links for now) with [FAQs](FAQs), sam behaviour.

dualspiral avatar Apr 18 '18 13:04 dualspiral