docute icon indicating copy to clipboard operation
docute copied to clipboard

Proper url paths

Open ezra-obiwale opened this issue 8 years ago • 2 comments

For links like

[Test Link](/test-link)

which resolve to

<a href="/test-link" router-link="/test-link">Test Link</a>

, it would be great if the href attribute actually bears the proper url like href="/#/test-link".

This is important for Algolia's bot when crawling the pages as the current link /test-link is of course broken.

This is currently affecting my Laraquick's doc.

ezra-obiwale avatar Nov 14 '17 17:11 ezra-obiwale

+1

Actually this willl also cause 404 when the user right clicks the link and opens in new tab, even affecting the official docs (the link with title plugins in https://v3.docute.org/#/home?id=how-to-run-code-inside-markdown).

stdrc avatar May 22 '18 14:05 stdrc

Is there documentation on making this work with Apache and ModRewrite? The URL scheme is predictable so I think it wouldn't take much effort to rewrite and redirect the URLs in real-time. This, of course, means you'd need access to Apache web server and .htaccess .

fogoat avatar Oct 01 '18 21:10 fogoat