realworld icon indicating copy to clipboard operation
realworld copied to clipboard

Use of hashtag fragments in routes

Open skerit opened this issue 5 years ago • 4 comments

Hi,

I want to create a fullstack implementation of Realworld for an MVC we use at our company, but I noticed the spec seems to dictate the use of hashtag routes (/#/) instead of fully qualified pathnames. I've never been a fan of those, are they really required for fullstack implementations?

skerit avatar Jul 22 '20 12:07 skerit

I noticed that not all of implemented Frontends followed that rule. For example, AngularJS implementation (https://angular.realworld.io/) does not contain hashtags in routes. So, my guess, it is not required.

Qclanton avatar Sep 03 '20 17:09 Qclanton

We should not only remove /#/ from the spec, but also have frontend test that check that they are not present: https://github.com/gothinkster/realworld/issues/269 We should encourage the URLs of all implementations to look exactly the same.

cirosantilli avatar Jun 25 '21 08:06 cirosantilli

@cirosantilli I slightly disagree, from my understanding the purpose of the realworld-project is to show of the best practices of each framework. I would argue that url-handling is an implementation detail, where each framework has different approaches of what is best.

Enforcing a specific kind of url would limit the way a framework can express itself, without any actual gain in comparability.

plusgut avatar Jun 25 '21 14:06 plusgut

@plusgut, as we are working on a set of e2e testing, having different usages will have an impact.

Would you have in mind some examples of frameworks using the hashtag as part of their best practices?

geromegrignon avatar Nov 15 '21 22:11 geromegrignon