Skip to content

Commit

Permalink
change-logical-check-WebUrlService
Browse files Browse the repository at this point in the history
  • Loading branch information
Raimundo Melo committed Jul 26, 2024
1 parent 07d7e8b commit 1b0cd65
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ class WebUrlService extends UrlService {
String? getPath() {
final href = window.location.href;

if (urlStrategy is HashUrlStrategy) {
if (href.endsWith(Modular.initialRoute)) {
return Modular.initialRoute;
} else if (href.contains('#')) {
if (urlStrategy is HashUrlStrategy) {
if (href.contains('#')) {
return href.split('#').last;
} else if (href.endsWith(Modular.initialRoute)) {
return Modular.initialRoute;

}
}

Expand Down

0 comments on commit 1b0cd65

Please sign in to comment.